mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
More idlelib cleanup inspired by pyflakes.
This commit is contained in:
parent
d9de794c23
commit
092b3cf671
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue