]> 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:45:53 +0000 (19:45 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 15 Sep 2011 17:45:53 +0000 (19:45 +0200)
commited36c06f1dbc8888d94491d3c2e83aa296e9b33a
tree7566a528fcc1b10c04bfb2a184826695510aff58
parent503e5e12c27bf130d388e09fe770d16d9b486821
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