diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-05-19 02:07:44 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-05-19 02:07:44 (GMT) |
commit | c626658a2803bb48a25b6c845ab60d72be1ed5d4 (patch) | |
tree | 6e0868634700e7aa7459411f66c0803d77c6938c /Lib/idlelib | |
parent | 415da6e0b22924e5b4c080cfdbbaed655d6684c7 (diff) | |
download | cpython-c626658a2803bb48a25b6c845ab60d72be1ed5d4.zip cpython-c626658a2803bb48a25b6c845ab60d72be1ed5d4.tar.gz cpython-c626658a2803bb48a25b6c845ab60d72be1ed5d4.tar.bz2 |
Let Python inform the user what went wrong with the import.
Modified Files:
idle idle.py idle.pyw
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-x | Lib/idlelib/idle | 2 | ||||
-rw-r--r-- | Lib/idlelib/idle.py | 2 | ||||
-rw-r--r-- | Lib/idlelib/idle.pyw | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/idle b/Lib/idlelib/idle index 449fb0e..3b08cae 100755 --- a/Lib/idlelib/idle +++ b/Lib/idlelib/idle @@ -7,7 +7,7 @@ except ImportError: try: import PyShell except ImportError: - print "Can't locate PyShell.py" + raise else: import os idledir = os.path.dirname(os.path.abspath(PyShell.__file__)) diff --git a/Lib/idlelib/idle.py b/Lib/idlelib/idle.py index 449fb0e..3b08cae 100644 --- a/Lib/idlelib/idle.py +++ b/Lib/idlelib/idle.py @@ -7,7 +7,7 @@ except ImportError: try: import PyShell except ImportError: - print "Can't locate PyShell.py" + raise else: import os idledir = os.path.dirname(os.path.abspath(PyShell.__file__)) diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw index 2a61720..767db86 100644 --- a/Lib/idlelib/idle.pyw +++ b/Lib/idlelib/idle.pyw @@ -5,7 +5,7 @@ except ImportError: try: import PyShell except ImportError: - print "Can't locate PyShell.py" + raise else: import os idledir = os.path.dirname(os.path.abspath(PyShell.__file__)) |