Skip to content

Commit 1a5327c

Browse files
committed
Rename private helper
1 parent d332e14 commit 1a5327c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_pyrepl/_module_completer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _find_modules(self, path: str, prefix: str) -> list[str]:
111111
modules: Iterable[pkgutil.ModuleInfo]
112112
imported_module = sys.modules.get(path.split('.')[0])
113113
if imported_module:
114-
modules = self._find_already_imported_module_specs(imported_module)
114+
modules = self._find_already_imported_module_infos(imported_module)
115115
else:
116116
modules = self.global_cache
117117

@@ -136,7 +136,7 @@ def _is_stdlib_module(self, module_info: pkgutil.ModuleInfo) -> bool:
136136
return (isinstance(module_info.module_finder, FileFinder)
137137
and module_info.module_finder.path == self._stdlib_path)
138138

139-
def _find_already_imported_module_specs(self, imported_module: ModuleType) -> list[pkgutil.ModuleInfo]:
139+
def _find_already_imported_module_infos(self, imported_module: ModuleType) -> list[pkgutil.ModuleInfo]:
140140
# Module already imported: only look in its location,
141141
# even if a module with the same name would be higher in path
142142
module_location = self._get_module_location(imported_module)

0 commit comments

Comments
 (0)