diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 05:35:59 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 05:35:59 (GMT) |
commit | df6f3fdaafb6f9d0f1b0915d28e5a72d350f9a55 (patch) | |
tree | eb4393389b9a27c0c2a9eef78ed94141f514f2b6 /Parser | |
parent | 7aaa770b08e79960073e0e278fee61a5c159335d (diff) | |
download | cpython-df6f3fdaafb6f9d0f1b0915d28e5a72d350f9a55.zip cpython-df6f3fdaafb6f9d0f1b0915d28e5a72d350f9a55.tar.gz cpython-df6f3fdaafb6f9d0f1b0915d28e5a72d350f9a55.tar.bz2 |
The output() function takes only one string argument.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/asdl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py index 28a7138..ca91b6e 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'): |