Match Python glob's argument signature.
This commit is contained in:
parent
2af2389b8d
commit
f599d7e394
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ def fix(pattern):
|
||||||
pattern = re.sub(r'(\[|\])', r'[\1]', pattern)
|
pattern = re.sub(r'(\[|\])', r'[\1]', pattern)
|
||||||
return pattern
|
return pattern
|
||||||
|
|
||||||
def glob(pattern):
|
def glob(pathname, *, recursive=False):
|
||||||
return python_glob.glob(fix(pattern))
|
return python_glob.glob(fix(pathname), recursive=recursive)
|
||||||
|
|
||||||
def fnmatch(name, pat):
|
def fnmatch(name, pat):
|
||||||
return python_fnmatch.fnmatch(name, fix(pat))
|
return python_fnmatch.fnmatch(name, fix(pat))
|
||||||
|
|
Loading…
Reference in a new issue