Skip to content

Commit 46ca249

Browse files
committed
Pass explicit None to find_spec
1 parent 62d0b55 commit 46ca249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def find_modules(self, path: str, prefix: str) -> list[str]:
680680

681681
def iter_submodules(self, parent_modules: list[pkgutil.ModuleInfo]) -> Iterator[pkgutil.ModuleInfo]:
682682
"""Iterate over all submodules of the given parent modules."""
683-
specs = [info.module_finder.find_spec(info.name)
683+
specs = [info.module_finder.find_spec(info.name, None)
684684
for info in parent_modules if info.ispkg]
685685
search_locations = set(chain.from_iterable(
686686
getattr(spec, 'submodule_search_locations', [])

0 commit comments

Comments
 (0)