mirror of https://github.com/python/cpython
The output() function takes only one string argument.
This commit is contained in:
parent
7aaa770b08
commit
df6f3fdaaf
|
@ -323,8 +323,8 @@ class VisitorBase(object):
|
|||
try:
|
||||
meth(object, *args)
|
||||
except Exception:
|
||||
output("Error visiting", repr(object))
|
||||
output(sys.exc_info()[1])
|
||||
output("Error visiting" + repr(object))
|
||||
output(str(sys.exc_info()[1]))
|
||||
traceback.print_exc()
|
||||
# XXX hack
|
||||
if hasattr(self, 'file'):
|
||||
|
|
Loading…
Reference in New Issue