[Python-checkins] cpython: Issue #16120: Use |yield from| in stdlib.
andrew.svetlov
python-checkins at python.org
Sun Oct 7 22:21:26 CEST 2012
http://hg.python.org/cpython/rev/70d49694786c
changeset: 79583:70d49694786c
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Sun Oct 07 23:21:15 2012 +0300
summary:
Issue #16120: Use |yield from| in stdlib.
Patch by Berker Peksag.
files:
Lib/pkgutil.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -455,8 +455,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list