diff options
author | Guido van Rossum <guido@python.org> | 1991-12-16 15:43:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-16 15:43:47 (GMT) |
commit | 6e93c07a06d8a2b7e0aa651a11310182216abf94 (patch) | |
tree | d509ffeacb6cc4b81636538791c30ec775751d29 /Python | |
parent | 7fa52f84c7c5479b75c5a1e168a2edaf7072f9de (diff) | |
download | cpython-6e93c07a06d8a2b7e0aa651a11310182216abf94.zip cpython-6e93c07a06d8a2b7e0aa651a11310182216abf94.tar.gz cpython-6e93c07a06d8a2b7e0aa651a11310182216abf94.tar.bz2 |
Change RuntimeError into IOError when module file not found on reload.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index c654940..7725245 100644 --- a/Python/import.c +++ b/Python/import.c @@ -152,7 +152,7 @@ get_module(m, name, m_ret) if (m == NULL) err_setstr(NameError, name); else - err_setstr(RuntimeError, "no module source file"); + err_setstr(IOError, "no module source file"); return NULL; } /* Get mtime -- always useful */ |