Kaydet (Commit) 6e024b38 authored tarafından Neal Norwitz's avatar Neal Norwitz

Use the str builtin

üst 41103bf6
......@@ -21,7 +21,6 @@ import marshal
__all__ = ["ImportManager","Importer","BuiltinImporter"]
_StringType = type('')
_ModuleType = type(sys) ### doesn't work in JPython...
class ImportManager:
......@@ -183,7 +182,7 @@ class ImportManager:
# scan sys.path looking for a location in the filesystem that contains
# the module, or an Importer object that can import the module.
for item in sys.path:
if isinstance(item, _StringType):
if isinstance(item, str):
module = self.fs_imp.import_from_dir(item, name)
else:
module = item.import_top(name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment