diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-18 17:32:12 (GMT) |
commit | 584b0e0c3d27dc6b576366368bf7ca2f60e69e7c (patch) | |
tree | f2e33dbae88a59b367819920a5c4a2260f080788 /Lib/pkgutil.py | |
parent | 17a35f906c29e71510d749283b381d95a5de0316 (diff) | |
download | cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.zip cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.gz cpython-584b0e0c3d27dc6b576366368bf7ca2f60e69e7c.tar.bz2 |
Whilespace normalization (reindint.py).
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 24de5d1..7316892 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -44,7 +44,7 @@ def simplegeneric(func): class cls(cls,object): pass mro = cls.__mro__[1:] except TypeError: - mro = object, # must be an ExtensionClass or some such :( + mro = object, # must be an ExtensionClass or some such :( for t in mro: if t in registry: return registry[t](*args,**kw) @@ -64,7 +64,7 @@ def simplegeneric(func): wrapper.__dict__ = func.__dict__ wrapper.__doc__ = func.__doc__ wrapper.register = register - return wrapper + return wrapper def walk_packages(path=None, prefix='', onerror=None): @@ -160,7 +160,7 @@ class ImpImporter: modname = inspect.getmodulename(fn) if modname=='__init__' or modname in yielded: continue - + path = os.path.join(self.path, fn) ispkg = False @@ -276,7 +276,7 @@ class ImpLoader: try: import zipimport from zipimport import zipimporter - + def iter_zipimport_modules(importer, prefix=''): dirlist = zipimport._zip_directory_cache[importer.archive].keys() dirlist.sort() |