Enforce unicode because of Python 2

This commit is contained in:
Dave Halter
2019-03-08 16:41:08 +01:00
parent bfd8ce475a
commit d77e43b57d

View File

@@ -285,7 +285,7 @@ class Importer(object):
# somewhere out of the filesystem. # somewhere out of the filesystem.
self._inference_possible = False self._inference_possible = False
else: else:
self._fixed_sys_path = [base_directory] self._fixed_sys_path = [force_unicode(base_directory)]
if base_import_path is None: if base_import_path is None:
if import_path: if import_path: