]> granicus.if.org Git - python/commit
Fix the import machinery if there is an error on sys.path or sys.meta_path
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Sep 2011 17:28:05 +0000 (19:28 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Sep 2011 17:28:05 +0000 (19:28 +0200)
commit1619132e5dba825cdfae200cf619470129116c3d
treec72deb24984c0ee226087233d5f57c1efadb4487
parent79746426c439a8a163d95381ffffa1b2fd34348e
Fix the import machinery if there is an error on sys.path or sys.meta_path

find_module() now raises a RuntimeError, instead of ImportError, on an error on
sys.path or sys.meta_path because load_package() and import_submodule() returns
None and clear the exception if a ImportError occurred.
Python/import.c