From f599d7e394b5bd8593b2fc27347458a6bf85c764 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 28 Jan 2020 17:40:30 -0800 Subject: [PATCH] Match Python glob's argument signature. --- voussoirkit/winglob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voussoirkit/winglob.py b/voussoirkit/winglob.py index 2477ec2..1dfb543 100644 --- a/voussoirkit/winglob.py +++ b/voussoirkit/winglob.py @@ -18,8 +18,8 @@ def fix(pattern): pattern = re.sub(r'(\[|\])', r'[\1]', pattern) return pattern -def glob(pattern): - return python_glob.glob(fix(pattern)) +def glob(pathname, *, recursive=False): + return python_glob.glob(fix(pathname), recursive=recursive) def fnmatch(name, pat): return python_fnmatch.fnmatch(name, fix(pat))