Issue #14605: Don't error out if get_importer() returns None.

This commit is contained in:
Brett Cannon 2012-04-27 15:45:15 -04:00
parent 6d3b3218be
commit fea73efc9e
2 changed files with 1108 additions and 1113 deletions

View File

@ -466,6 +466,8 @@ def find_loader(fullname):
platform-specific special import locations such as the Windows registry.
"""
for importer in iter_importers(fullname):
if importer is None:
continue
loader = importer.find_module(fullname)
if loader is not None:
return loader

File diff suppressed because it is too large Load Diff