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

Patch by Berker Peksag.
This commit is contained in:
Andrew Svetlov 2012-10-07 23:21:15 +03:00
parent 8fb9f4cf7b
commit 2aa5f3cf51
1 changed files with 1 additions and 2 deletions

View File

@ -455,8 +455,7 @@ def iter_importers(fullname=""):
if path is None:
return
else:
for importer in sys.meta_path:
yield importer
yield from sys.meta_path
path = sys.path
for item in path:
yield get_importer(item)