commit | f15d15964b6ac3e5ff71894707fbcff48bec45b2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Sep 29 23:22:12 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Sep 29 23:22:12 1997 +0000 |
tree | e0fccf5a3756b03f3f0b2a265c65a175ffe61f09 | |
parent | c90ad2103eb9aca14b7a910cbcdcd7b570f690ab [diff] [blame] |
Use sys.exc_info() where needed.
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 @@ 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