summaryrefslogtreecommitdiffstats
path: root/Lib/ni1.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/ni1.py')
-rw-r--r--Lib/ni1.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/ni1.py b/Lib/ni1.py
index fa24d30..95c9b59 100644
--- a/Lib/ni1.py
+++ b/Lib/ni1.py
@@ -412,8 +412,7 @@ def test():
try:
testproper()
except:
- sys.last_type, sys.last_value, sys.last_traceback = (
- sys.exc_type, sys.exc_value, sys.exc_traceback)
+ sys.last_type, sys.last_value, sys.last_traceback = sys.exc_info()
print
print sys.last_type, ':', sys.last_value
print