summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/StackViewer.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-07-02 01:33:26 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-07-02 01:33:26 (GMT)
commit228b99e8a40554f75ba631e8daf42f7fb625bd0c (patch)
tree5890b549200397c06e810e707928eb643719671c /Lib/idlelib/StackViewer.py
parent9bc505616b4bc88b29993f351218c3083bd3f3e8 (diff)
downloadcpython-228b99e8a40554f75ba631e8daf42f7fb625bd0c.zip
cpython-228b99e8a40554f75ba631e8daf42f7fb625bd0c.tar.gz
cpython-228b99e8a40554f75ba631e8daf42f7fb625bd0c.tar.bz2
More idlelib cleanup inspired by pyflakes.
Diffstat (limited to 'Lib/idlelib/StackViewer.py')
-rw-r--r--Lib/idlelib/StackViewer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/StackViewer.py b/Lib/idlelib/StackViewer.py
index 74c9136..ccf6283 100644
--- a/Lib/idlelib/StackViewer.py
+++ b/Lib/idlelib/StackViewer.py
@@ -131,8 +131,8 @@ def _stack_viewer(parent):
root.geometry("+%d+%d"%(x, y + 150))
flist = PyShellFileList(root)
try: # to obtain a traceback object
- a
- except:
+ intentional_name_error
+ except NameError:
exc_type, exc_value, exc_tb = sys.exc_info()
# inject stack trace to sys