Skip to content

Commit 1621018

Browse files
Update Lib/importlib/_bootstrap.py
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent a06d51a commit 1621018

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/importlib/_bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,9 @@ def is_package(cls, fullname):
942942
def discover(cls, spec=None):
943943
if spec is not None: # assume that built-in modules have no submodule
944944
return
945-
for i in sys.builtin_module_names:
946-
if i_spec := cls.find_spec(i):
947-
yield i_spec
945+
for name in sys.builtin_module_names:
946+
if mod_spec := cls.find_spec(name):
947+
yield mod_spec
948948

949949

950950
class FrozenImporter:

0 commit comments

Comments
 (0)