mirror of https://github.com/python/cpython
Improve exception handling.
This commit is contained in:
parent
9c2fbb5619
commit
e23ca3c35a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue