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

Skip to content

Commit df6f3fd

Browse files
committed
The output() function takes only one string argument.
1 parent 7aaa770 commit df6f3fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Parser/asdl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ def visit(self, object, *args):
323323
try:
324324
meth(object, *args)
325325
except Exception:
326-
output("Error visiting", repr(object))
327-
output(sys.exc_info()[1])
326+
output("Error visiting" + repr(object))
327+
output(str(sys.exc_info()[1]))
328328
traceback.print_exc()
329329
# XXX hack
330330
if hasattr(self, 'file'):

0 commit comments

Comments
 (0)