mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
gh-102778: revert changes to idlelib (#102825)
This commit is contained in:
parent
ccb5af7bfe
commit
4d1f033986
4 changed files with 9 additions and 24 deletions
|
@ -1367,14 +1367,11 @@ class PyShell(OutputWindow):
|
|||
if self.interp.rpcclt:
|
||||
return self.interp.remote_stack_viewer()
|
||||
try:
|
||||
if hasattr(sys, 'last_exc'):
|
||||
sys.last_exc.__traceback__
|
||||
else:
|
||||
sys.last_traceback
|
||||
sys.last_traceback
|
||||
except:
|
||||
messagebox.showerror("No stack trace",
|
||||
"There is no stack trace yet.\n"
|
||||
"(sys.last_exc and sys.last_traceback are not defined)",
|
||||
"(sys.last_traceback is not defined)",
|
||||
parent=self.text)
|
||||
return
|
||||
from idlelib.stackviewer import StackBrowser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue