summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-24 23:17:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-24 23:17:28 (GMT)
commit6e024b384271b747e62bef2475f4ec75bd63bb7d (patch)
tree179242724d1261864b805124151254418a46d296
parent41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d (diff)
downloadcpython-6e024b384271b747e62bef2475f4ec75bd63bb7d.zip
cpython-6e024b384271b747e62bef2475f4ec75bd63bb7d.tar.gz
cpython-6e024b384271b747e62bef2475f4ec75bd63bb7d.tar.bz2
Use the str builtin
-rw-r--r--Lib/imputil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py
index a0099a8..8cd492c 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -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)