diff options
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 2c34298..48c1479 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -413,6 +413,7 @@ def get_importer(path_item): The cache (or part of it) can be cleared manually if a rescan of sys.path_hooks is necessary. """ + path_item = os.fsdecode(path_item) try: importer = sys.path_importer_cache[path_item] except KeyError: |