]> granicus.if.org Git - python/commit
Fix importlib.machinery.PathFinder.find_module() to essentially skip over None
authorBrett Cannon <bcannon@gmail.com>
Mon, 30 Mar 2009 19:57:15 +0000 (19:57 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 30 Mar 2009 19:57:15 +0000 (19:57 +0000)
commit8593a7568817bf36039460e34826822bec9c3904
treea9d149001ca961556ea5d7c41b3a5f869a77fcbe
parent0e314548c2e8dac3fa714bdf75b3ea7554c1368d
Fix importlib.machinery.PathFinder.find_module() to essentially skip over None
entries in sys.path_importer_cache. While this differs from semantics in how
__import__ works, it prevents any implicit semantics from taking hold with
users.
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test_path.py