More idlelib cleanup inspired by pyflakes.

This commit is contained in:
Terry Jan Reedy 2014-07-01 21:33:31 -04:00
parent d9de794c23
commit 092b3cf671
3 changed files with 5 additions and 5 deletions

View file

@ -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