[Python-checkins] r65534 - sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py
guilherme.polo
python-checkins at python.org
Tue Aug 5 00:49:57 CEST 2008
Author: guilherme.polo
Date: Tue Aug 5 00:49:56 2008
New Revision: 65534
Log:
Added a needed import; Made a except more explicit
Modified:
sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py
Modified: sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py (original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py Tue Aug 5 00:49:56 2008
@@ -12,7 +12,7 @@
from code import InteractiveInterpreter
try:
- from Tkinter import Tk, TclError
+ from Tkinter import Tk, Toplevel, TclError
from Tkconstants import END
except ImportError:
print>>sys.__stderr__, "** IDLE can't import Tkinter. " \
@@ -1189,7 +1189,7 @@
return self.interp.remote_stack_viewer()
try:
sys.last_traceback
- except:
+ except AttributeError:
tkMessageBox.showerror("No stack trace",
"There is no stack trace yet.\n"
"(sys.last_traceback is not defined)",
More information about the Python-checkins
mailing list