Kaydet (Commit) e23ca3c3 authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

Improve exception handling.

üst 9c2fbb56
......@@ -2,8 +2,9 @@
try:
import idlelib.PyShell
idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
else:
idlelib.PyShell.main()
......@@ -2,8 +2,9 @@
try:
import idlelib.PyShell
idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
else:
idlelib.PyShell.main()
......@@ -2,8 +2,9 @@
try:
import idlelib.PyShell
idlelib.PyShell.main()
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()
else:
idlelib.PyShell.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment