summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-10-01 19:53:43 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2012-10-01 19:53:43 (GMT)
commit4993cc0a5b34dc91da2b41c50e33d809f0191355 (patch)
tree5f4a1327469a43d4bbaa876e13e22a316731775d /Lib/pkgutil.py
parent075bbb176f69e3da013e39d847caaea9b0cee334 (diff)
downloadcpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.zip
cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz
cpython-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.bz2
utilize yield from
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 8bdeb32..3117c17 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -121,8 +121,7 @@ def walk_packages(path=None, prefix='', onerror=None):
# don't traverse path items we've seen before
path = [p for p in path if not seen(p)]
- for item in walk_packages(path, name+'.', onerror):
- yield item
+ yield from walk_packages(path, name+'.', onerror)
def iter_modules(path=None, prefix=''):