Improve exception handling.

This commit is contained in:
Kurt B. Kaiser 2002-12-31 23:18:00 +00:00
parent 13af1142fc
commit 7cca3d8ef0
3 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
#! /usr/bin/env python
#!/usr/bin/python
try:
import idlelib.PyShell
idlelib.PyShell.main()
except:
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()

View File

@ -1,9 +1,9 @@
#! /usr/bin/env python
#!/usr/bin/python
try:
import idlelib.PyShell
idlelib.PyShell.main()
except:
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()

View File

@ -1,9 +1,9 @@
#! /usr/bin/env python
#!/usr/bin/python
try:
import idlelib.PyShell
idlelib.PyShell.main()
except:
except ImportError:
# IDLE is not installed, but maybe PyShell is on sys.path:
import PyShell
PyShell.main()