diff Lib/pkgutil.py @ 43577:ace45b361e87

Patch# 1258 by Christian Heimes: kill basestring. I like this because it makes the code shorter! :-)
author Guido van Rossum <guido@python.org>
date Tue, 16 Oct 2007 18:12:55 +0000
parents 4d2aa4bfb2d6
children beb7abcd6c01
line wrap: on
line diff
--- a/Lib/pkgutil.py	Tue Oct 16 06:31:30 2007 +0000
+++ b/Lib/pkgutil.py	Tue Oct 16 18:12:55 2007 +0000
@@ -516,7 +516,7 @@
     path = path[:] # Start with a copy of the existing path
 
     for dir in sys.path:
-        if not isinstance(dir, basestring) or not os.path.isdir(dir):
+        if not isinstance(dir, str) or not os.path.isdir(dir):
             continue
         subdir = os.path.join(dir, pname)
         # XXX This may still add duplicate entries to path on