Skip to content

Commit fca04c5

Browse files
committed
make pkutil path arg less ambiguous
closes #90149
1 parent 034cf0c commit fca04c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Lib/pkgutil.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def walk_packages(path=None, prefix='', onerror=None):
4040
"""Yields ModuleInfo for all modules recursively
4141
on path, or, if path is None, all accessible modules.
4242
43-
'path' should be either None or a list of paths to look for
44-
modules in.
43+
'path' should be either None or a list of paths as strings to search
44+
for modules.
4545
4646
'prefix' is a string to output on the front of every module name
4747
on output.
@@ -97,17 +97,17 @@ def iter_modules(path=None, prefix=''):
9797
"""Yields ModuleInfo for all submodules on path,
9898
or, if path is None, all top-level modules on sys.path.
9999
100-
'path' should be either None or a list of paths to look for
101-
modules in.
100+
'path' should be either None or a list of paths as strings to search
101+
for modules.
102102
103103
'prefix' is a string to output on the front of every module name
104104
on output.
105105
"""
106106
if path is None:
107107
importers = iter_importers()
108108
elif isinstance(path, str):
109-
raise ValueError("path must be None or list of paths to look for "
110-
"modules in")
109+
raise ValueError("path must be None or list of paths as strings to "
110+
"search for modules")
111111
else:
112112
importers = map(get_importer, path)
113113

0 commit comments

Comments
 (0)