diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-12-31 23:18:00 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-12-31 23:18:00 (GMT) |
commit | 7cca3d8ef011446af1cc940606fda17f902a1e60 (patch) | |
tree | 9a6aadb042a973a18d2500abe86b14dcd91319fb /Lib/idlelib | |
parent | 13af1142fcedc7b6022e32026e5f2768ae7eda03 (diff) | |
download | cpython-7cca3d8ef011446af1cc940606fda17f902a1e60.zip cpython-7cca3d8ef011446af1cc940606fda17f902a1e60.tar.gz cpython-7cca3d8ef011446af1cc940606fda17f902a1e60.tar.bz2 |
Improve exception handling.
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-x | Lib/idlelib/idle | 4 | ||||
-rw-r--r-- | Lib/idlelib/idle.py | 4 | ||||
-rw-r--r-- | Lib/idlelib/idle.pyw | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 131e8d3..0d4e85f 100755 --- a/Lib/idlelib/idle +++ b/Lib/idlelib/idle @@ -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() diff --git a/Lib/idlelib/idle.py b/Lib/idlelib/idle.py index 131e8d3..0d4e85f 100644 --- a/Lib/idlelib/idle.py +++ b/Lib/idlelib/idle.py @@ -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() diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 131e8d3..0d4e85f 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -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() |