Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 064a62b

Browse files
committed
err() should be varargs -- and fix one call
1 parent ef4ee62 commit 064a62b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/cgen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Function to print to stderr
4040
#
41-
def err(args):
41+
def err(*args):
4242
savestdout = sys.stdout
4343
try:
4444
sys.stdout = sys.stderr
@@ -213,8 +213,8 @@ def generate(type, func, database):
213213
# Can't happen
214214
raise arg_error, ('bad a_mode', a_mode)
215215
if (a_mode == 'r' and a_sub) or a_sub == 'retval':
216-
e = 'Function', func, 'too complicated:'
217-
err(e + (a_type, a_mode, a_factor, a_sub))
216+
err('Function', func, 'too complicated:',
217+
a_type, a_mode, a_factor, a_sub)
218218
print '/* XXX Too complicated to generate code for */'
219219
return
220220
#

0 commit comments

Comments
 (0)