diff options
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index f4347e5e54..37738e4a75 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -381,9 +381,7 @@ def get_importer(path_item): importer = None sys.path_importer_cache.setdefault(path_item, importer) - # The boolean values are used for caching valid and invalid - # file paths for the built-in import machinery - if importer in (None, True, False): + if importer is None: try: importer = ImpImporter(path_item) except ImportError: |