diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-07-25 22:30:24 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-07-25 22:30:24 (GMT) |
commit | 91343075dca07ec9207b17ba339c4ca2137aa72c (patch) | |
tree | d874b6e7ce70ca6a3d1d62b5a0a5a5bd56f3bfea /Lib | |
parent | 3075e16c516e3975b61e4356a6d64def9cc5110e (diff) | |
download | cpython-91343075dca07ec9207b17ba339c4ca2137aa72c.zip cpython-91343075dca07ec9207b17ba339c4ca2137aa72c.tar.gz cpython-91343075dca07ec9207b17ba339c4ca2137aa72c.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pkgutil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 3b004e9..e138849 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -71,7 +71,7 @@ def simplegeneric(func): def walk_packages(path=None, prefix='', onerror=None): """Yields (module_loader, name, ispkg) for all modules recursively on path, or, if path is None, all accessible modules. - + 'path' should be either None or a list of paths to look for modules in. @@ -81,7 +81,7 @@ def walk_packages(path=None, prefix='', onerror=None): Note that this function must import all *packages* (NOT all modules!) on the given path, in order to access the __path__ attribute to find submodules. - + 'onerror' is a function which gets called with one argument (the name of the package which was being imported) if an ImportError occurs trying to import a package. By default the ImportError is @@ -126,7 +126,7 @@ def iter_modules(path=None, prefix=''): 'prefix' is a string to output on the front of every module name on output. """ - + if path is None: importers = iter_importers() else: |