(original) (raw)
changeset: 79583:70d49694786c user: Andrew Svetlov andrew.svetlov@gmail.com date: Sun Oct 07 23:21:15 2012 +0300 files: Lib/pkgutil.py description: Issue #16120: Use |yield from| in stdlib. Patch by Berker Peksag. diff -r fc011f1ef59e -r 70d49694786c Lib/pkgutil.py --- a/Lib/pkgutil.py Sun Oct 07 18:08:47 2012 +0100 +++ b/Lib/pkgutil.py Sun Oct 07 23:21:15 2012 +0300 @@ -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) /andrew.svetlov@gmail.com