Commit 34e49c9c authored by Guido van Rossum's avatar Guido van Rossum

err() should be varargs -- and fix one call

parent fdf328ff
......@@ -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
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment