Commit 40775e80 authored by Tim Golden's avatar Tim Golden

Correct mis-indented whitespace

parent f405ef38
...@@ -27,22 +27,22 @@ def iglob(pathname): ...@@ -27,22 +27,22 @@ def iglob(pathname):
return return
pathnames = expand_braces(pathname) pathnames = expand_braces(pathname)
for pathname in pathnames: for pathname in pathnames:
dirname, basename = os.path.split(pathname) dirname, basename = os.path.split(pathname)
if not dirname: if not dirname:
yield from glob1(None, basename) yield from glob1(None, basename)
return return
if has_magic(dirname): if has_magic(dirname):
dirs = iglob(dirname) dirs = iglob(dirname)
else: else:
dirs = [dirname] dirs = [dirname]
if has_magic(basename): if has_magic(basename):
glob_in_dir = glob1 glob_in_dir = glob1
else: else:
glob_in_dir = glob0 glob_in_dir = glob0
for dirname in dirs: for dirname in dirs:
for name in glob_in_dir(dirname, basename): for name in glob_in_dir(dirname, basename):
yield os.path.join(dirname, name) yield os.path.join(dirname, name)
# These 2 helper functions non-recursively glob inside a literal directory. # These 2 helper functions non-recursively glob inside a literal directory.
# They return a list of basenames. `glob1` accepts a pattern while `glob0` # They return a list of basenames. `glob1` accepts a pattern while `glob0`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment