[Python-checkins] r65346 - python/trunk/Lib/traceback.py
brett.cannon
python-checkins at python.org
Fri Aug 1 03:21:50 CEST 2008
Author: brett.cannon
Date: Fri Aug 1 03:21:50 2008
New Revision: 65346
Log:
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
Modified:
python/trunk/Lib/traceback.py
Modified: python/trunk/Lib/traceback.py
==============================================================================
--- python/trunk/Lib/traceback.py (original)
+++ python/trunk/Lib/traceback.py Fri Aug 1 03:21:50 2008
@@ -181,7 +181,7 @@
# It was a syntax error; show exactly where the problem was found.
lines = []
try:
- msg, (filename, lineno, offset, badline) = value
+ msg, (filename, lineno, offset, badline) = value.args
except Exception:
pass
else:
More information about the Python-checkins
mailing list