summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-27 00:15:55 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-02-27 00:15:55 (GMT)
commitba7bf49a54223b940b773c8678ab8c60da12a155 (patch)
tree48a0d5941089fdf3a1bc926ac6b94be26c84529e /Lib/traceback.py
parent44c526174d9296ce358ccee9652382e7ea5377f4 (diff)
downloadcpython-ba7bf49a54223b940b773c8678ab8c60da12a155.zip
cpython-ba7bf49a54223b940b773c8678ab8c60da12a155.tar.gz
cpython-ba7bf49a54223b940b773c8678ab8c60da12a155.tar.bz2
Remove the ability to slice/index on exceptions per PEP 352.
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py2
1 files changed, 1 insertions, 1 deletions
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 @@ def format_exception_only(etype, value):
# 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: