Kaydet (Commit) 2aa5f3cf authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Issue #16120: Use |yield from| in stdlib.

Patch by Berker Peksag.
üst 8fb9f4cf
...@@ -455,8 +455,7 @@ def iter_importers(fullname=""): ...@@ -455,8 +455,7 @@ def iter_importers(fullname=""):
if path is None: if path is None:
return return
else: else:
for importer in sys.meta_path: yield from sys.meta_path
yield importer
path = sys.path path = sys.path
for item in path: for item in path:
yield get_importer(item) yield get_importer(item)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment