[Python-checkins] r54040 - python/branches/p3yk_no_args_on_exc/Lib/traceback.py

brett.cannon python-checkins at python.org
Wed Feb 28 22:26:34 CET 2007


Author: brett.cannon
Date: Wed Feb 28 22:26:34 2007
New Revision: 54040

Modified:
   python/branches/p3yk_no_args_on_exc/Lib/traceback.py
Log:
Fix 'traceback' for BaseException.args removal.


Modified: python/branches/p3yk_no_args_on_exc/Lib/traceback.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/traceback.py	(original)
+++ python/branches/p3yk_no_args_on_exc/Lib/traceback.py	Wed Feb 28 22:26:34 2007
@@ -178,7 +178,12 @@
     # It was a syntax error; show exactly where the problem was found.
     lines = []
     try:
-        msg, (filename, lineno, offset, badline) = value.args
+        message = value.message
+        filename = value.filename
+        lineno = value.lineno
+        offset = value.offset
+        badline = value.text
+        msg = value.message
     except Exception:
         pass
     else:


More information about the Python-checkins mailing list