The output() function takes only one string argument.

This commit is contained in:
Alexandre Vassalotti 2009-07-17 05:35:59 +00:00
parent 7aaa770b08
commit df6f3fdaaf
1 changed files with 2 additions and 2 deletions

View File

@ -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'):