Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e23ca3c

Browse files
committed
Improve exception handling.
1 parent 9c2fbb5 commit e23ca3c

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lib/idlelib/idle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
try:
44
import idlelib.PyShell
5-
idlelib.PyShell.main()
65
except ImportError:
76
# IDLE is not installed, but maybe PyShell is on sys.path:
87
import PyShell
98
PyShell.main()
9+
else:
10+
idlelib.PyShell.main()

Lib/idlelib/idle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
try:
44
import idlelib.PyShell
5-
idlelib.PyShell.main()
65
except ImportError:
76
# IDLE is not installed, but maybe PyShell is on sys.path:
87
import PyShell
98
PyShell.main()
9+
else:
10+
idlelib.PyShell.main()

Lib/idlelib/idle.pyw

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
try:
44
import idlelib.PyShell
5-
idlelib.PyShell.main()
65
except ImportError:
76
# IDLE is not installed, but maybe PyShell is on sys.path:
87
import PyShell
98
PyShell.main()
9+
else:
10+
idlelib.PyShell.main()

0 commit comments

Comments
 (0)