From: Kurt B. Kaiser Date: Thu, 2 Jan 2003 17:09:34 +0000 (+0000) Subject: Improve exception handling. X-Git-Tag: v2.3c1~2645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e23ca3c35aba074f8cfa496af24c7641973c7fab;p=thirdparty%2FPython%2Fcpython.git Improve exception handling. --- diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 0d4e85fdf094..c8a8feaf6ce8 100755 --- a/Lib/idlelib/idle +++ b/Lib/idlelib/idle @@ -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() diff --git a/Lib/idlelib/idle.py b/Lib/idlelib/idle.py index 0d4e85fdf094..c8a8feaf6ce8 100644 --- a/Lib/idlelib/idle.py +++ b/Lib/idlelib/idle.py @@ -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() diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 0d4e85fdf094..c8a8feaf6ce8 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -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()