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:
|
try:
|
||||||
meth(object, *args)
|
meth(object, *args)
|
||||||
except Exception:
|
except Exception:
|
||||||
output("Error visiting", repr(object))
|
output("Error visiting" + repr(object))
|
||||||
output(sys.exc_info()[1])
|
output(str(sys.exc_info()[1]))
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
# XXX hack
|
# XXX hack
|
||||||
if hasattr(self, 'file'):
|
if hasattr(self, 'file'):
|
||||||
|
|
Loading…
Reference in New Issue