mirror of
https://github.com/python/cpython
synced 2024-10-03 00:45:15 +00:00
The output() function takes only one string argument.
This commit is contained in:
parent
7aaa770b08
commit
df6f3fdaaf
|
@ -323,8 +323,8 @@ def visit(self, object, *args):
|
|||
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 a new issue