From: Andrew Svetlov Date: Sun, 7 Oct 2012 20:21:15 +0000 (+0300) Subject: Issue #16120: Use |yield from| in stdlib. X-Git-Tag: v3.4.0a1~2309^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd;p=python Issue #16120: Use |yield from| in stdlib. Patch by Berker Peksag. --- diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 3117c17795..c695cf1081 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)