commit | ed36c06f1dbc8888d94491d3c2e83aa296e9b33a | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Sep 15 19:45:53 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Sep 15 19:45:53 2011 +0200 |
tree | 7566a528fcc1b10c04bfb2a184826695510aff58 | |
parent | 503e5e12c27bf130d388e09fe770d16d9b486821 [diff] |
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.