From e3f080b74ffa5c12889504c1728ddca4ae48494c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 11 Jan 2020 01:37:33 -0800 Subject: [PATCH] Update winglob module docstring. --- voussoirkit/winglob.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voussoirkit/winglob.py b/voussoirkit/winglob.py index c62b6ef..9f80089 100644 --- a/voussoirkit/winglob.py +++ b/voussoirkit/winglob.py @@ -3,7 +3,8 @@ On Windows, square brackets do not have a special meaning in glob strings. However, python's glob module is written for unix-style globs in which brackets represent character classes / ranges. -Calling glob.escape would also escape asterisk which may not be desired. +On Windows we should escape those brackets to get the right results. +But calling glob.escape would also escape asterisk which may not be desired. So this module just provides a modified version of glob.glob which will escape only square brackets when called on windows, and behave normally on linux. '''