From df6f3fdaafb6f9d0f1b0915d28e5a72d350f9a55 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Fri, 17 Jul 2009 05:35:59 +0000 Subject: [PATCH] The output() function takes only one string argument. --- Parser/asdl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parser/asdl.py b/Parser/asdl.py index 28a71387978..ca91b6e2a0a 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -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'):