summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-07 20:21:15 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-07 20:21:15 (GMT)
commit2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd (patch)
tree5dc81e720df684eabd265ba2659f345ec72cc590 /Lib/pkgutil.py
parent8fb9f4cf7b4b39ee8f4992d338181377c60d5ddc (diff)
downloadcpython-2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd.zip
cpython-2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd.tar.gz
cpython-2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd.tar.bz2
Issue #16120: Use |yield from| in stdlib.
Patch by Berker Peksag.
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 3117c17..c695cf1 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -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)