From 2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sun, 7 Oct 2012 23:21:15 +0300 Subject: [PATCH] Issue #16120: Use |yield from| in stdlib. Patch by Berker Peksag. --- Lib/pkgutil.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 3117c177958..c695cf10815 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)