]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
err() should be varargs -- and fix one call
authorGuido van Rossum <guido@python.org>
Fri, 7 Jul 1995 22:39:14 +0000 (22:39 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Jul 1995 22:39:14 +0000 (22:39 +0000)
Modules/cgen.py

index b06308c85b226e3f4074029c2c63645759950a34..d358e28dea1ebff04b5c83365495069b5cfd6507 100644 (file)
@@ -38,7 +38,7 @@ import sys
 
 # Function to print to stderr
 #
-def err(args):
+def err(*args):
        savestdout = sys.stdout
        try:
                sys.stdout = sys.stderr
@@ -213,8 +213,8 @@ def generate(type, func, database):
                        # Can't happen
                        raise arg_error, ('bad a_mode', a_mode)
                if (a_mode == 'r' and a_sub) or a_sub == 'retval':
-                       e = 'Function', func, 'too complicated:'
-                       err(e + (a_type, a_mode, a_factor, a_sub))
+                       err('Function', func, 'too complicated:',
+                           a_type, a_mode, a_factor, a_sub)
                        print '/* XXX Too complicated to generate code for */'
                        return
        #