commit | ba7bf49a54223b940b773c8678ab8c60da12a155 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Tue Feb 27 00:15:55 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Tue Feb 27 00:15:55 2007 +0000 |
tree | 48a0d5941089fdf3a1bc926ac6b94be26c84529e | |
parent | 44c526174d9296ce358ccee9652382e7ea5377f4 [diff] [blame] |
Remove the ability to slice/index on exceptions per PEP 352.
diff --git a/Lib/traceback.py b/Lib/traceback.py index a0d2dcc..437e29b 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py
@@ -178,7 +178,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: