mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Improve exception handling.
This commit is contained in:
parent
9c2fbb5619
commit
e23ca3c35a
3 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue