commit | 2aa5f3cf510fd8e5f7fe2760a79618e1ae4c24cd | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Sun Oct 07 23:21:15 2012 +0300 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Sun Oct 07 23:21:15 2012 +0300 |
tree | 5dc81e720df684eabd265ba2659f345ec72cc590 | |
parent | 8fb9f4cf7b4b39ee8f4992d338181377c60d5ddc [diff] [blame] |
Issue #16120: Use |yield from| in stdlib. Patch by Berker Peksag.
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 @@ 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)