diff options
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 36d493d..3431a69 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) |