We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a352b6 commit e16265dCopy full SHA for e16265d
Lib/idlelib/pyshell.py
@@ -5,15 +5,15 @@
5
except ImportError:
6
print("** IDLE can't import Tkinter.\n"
7
"Your Python may not be configured for Tk. **", file=sys.__stderr__)
8
- sys.exit(1)
+ raise SystemExit(1)
9
import tkinter.messagebox as tkMessageBox
10
if TkVersion < 8.5:
11
root = Tk() # otherwise create root in main
12
root.withdraw()
13
tkMessageBox.showerror("Idle Cannot Start",
14
- "Idle requires tcl/tk 8.5+, not $s." % TkVersion,
+ "Idle requires tcl/tk 8.5+, not %s." % TkVersion,
15
parent=root)
16
17
18
from code import InteractiveInterpreter
19
import getopt
0 commit comments