diff options
author | Guido van Rossum <guido@python.org> | 1995-07-07 22:39:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-07 22:39:14 (GMT) |
commit | 064a62bc8a5b4e766dedc7afa83dc9b23267fccc (patch) | |
tree | ae4eb3901992dd582b8948c8a73e3caa4ca2d747 | |
parent | ef4ee62a0f54a7c6bb4995dfa49c89a4f24e5711 (diff) | |
download | cpython-064a62bc8a5b4e766dedc7afa83dc9b23267fccc.zip cpython-064a62bc8a5b4e766dedc7afa83dc9b23267fccc.tar.gz cpython-064a62bc8a5b4e766dedc7afa83dc9b23267fccc.tar.bz2 |
err() should be varargs -- and fix one call
-rw-r--r-- | Modules/cgen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/cgen.py b/Modules/cgen.py index b06308c..d358e28 100644 --- a/Modules/cgen.py +++ b/Modules/cgen.py @@ -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 # |