diff options
author | Guido van Rossum <guido@python.org> | 1997-10-22 21:00:49 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-22 21:00:49 +0000 |
commit | 3ccd1e6e796323cb4f464f847130a5b67fc3db1b (patch) | |
tree | 2c489bf2d32bc6b954605d98cc22618a1aad9616 /Lib/glob.py | |
parent | 9006d299bd48d1ab1c30edfc747c88a21a9bc913 (diff) | |
download | cpython-3ccd1e6e796323cb4f464f847130a5b67fc3db1b.tar.gz |
Convert all remaining *simple* cases of regex usage to re usage.
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 990ffa3ada..599d41b5e1 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 |