summaryrefslogtreecommitdiff
path: root/Lib/glob.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2012-10-01 12:53:43 -0700
commit4993cc0a5b34dc91da2b41c50e33d809f0191355 (patch)
tree5f4a1327469a43d4bbaa876e13e22a316731775d /Lib/glob.py
parent075bbb176f69e3da013e39d847caaea9b0cee334 (diff)
downloadcpython-git-4993cc0a5b34dc91da2b41c50e33d809f0191355.tar.gz
utilize yield from
Diffstat (limited to 'Lib/glob.py')
-rw-r--r--Lib/glob.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/glob.py b/Lib/glob.py
index 36d493d7a8..3431a695bb 100644
--- a/Lib/glob.py
+++ b/Lib/glob.py
@@ -26,8 +26,7 @@ def iglob(pathname):
return
dirname, basename = os.path.split(pathname)
if not dirname:
- for name in glob1(None, basename):
- yield name
+ yield from glob1(None, basename)
return
if has_magic(dirname):
dirs = iglob(dirname)