diff options
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 990ffa3..599d41b5 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -2,7 +2,7 @@ import os import fnmatch -import regex +import re def glob(pathname): @@ -50,7 +50,7 @@ def glob1(dirname, pattern): return result -magic_check = regex.compile('[*?[]') +magic_check = re.compile('[*?[]') def has_magic(s): - return magic_check.search(s) >= 0 + return magic_check.search(s) is not None |