commit | 5400b6b2e295ea96ac96169692c3c50b91b17ed6 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Fri Aug 01 01:21:50 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Fri Aug 01 01:21:50 2008 +0000 |
tree | 51f836f34cd36371542b5cced2f25f99f5082dd5 | |
parent | 06847b13ca28ef88e0ded4ce985c46317ba8cdaf [diff] |
Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
diff --git a/Lib/traceback.py b/Lib/traceback.py index 31b8255..3d877ee 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py
@@ -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: