From: Kurt B. Kaiser Date: Tue, 31 Dec 2002 23:18:00 +0000 (+0000) Subject: Improve exception handling. X-Git-Tag: v2.3c1~2684 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cca3d8ef011446af1cc940606fda17f902a1e60;p=thirdparty%2FPython%2Fcpython.git Improve exception handling. --- diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 131e8d3694a5..0d4e85fdf094 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 131e8d3694a5..0d4e85fdf094 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 131e8d3694a5..0d4e85fdf094 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()