Improve exception handling.
authorKurt B. Kaiser <kbk@shore.net>
Tue, 31 Dec 2002 23:18:00 +0000 (23:18 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Tue, 31 Dec 2002 23:18:00 +0000 (23:18 +0000)
Lib/idlelib/idle
Lib/idlelib/idle.py
Lib/idlelib/idle.pyw

index 131e8d3694a5744d8295b30f932588b6352f075d..0d4e85fdf0944399e430830ec9c0228fc06b7689 100755 (executable)
@@ -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()
index 131e8d3694a5744d8295b30f932588b6352f075d..0d4e85fdf0944399e430830ec9c0228fc06b7689 100644 (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()
index 131e8d3694a5744d8295b30f932588b6352f075d..0d4e85fdf0944399e430830ec9c0228fc06b7689 100644 (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()