summaryrefslogtreecommitdiffstats
path: root/Lib/glob.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-22 21:00:49 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-22 21:00:49 (GMT)
commit9694fcab5332f27dc28b195ba1391e5491d2eaef (patch)
tree23dc3d9a7d1cc4b138ac2bffd028a519cba93b30 /Lib/glob.py
parent426916e50e1209d8ecc12678855dc531863a48c5 (diff)
downloadcpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.zip
cpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.tar.gz
cpython-9694fcab5332f27dc28b195ba1391e5491d2eaef.tar.bz2
Convert all remaining *simple* cases of regex usage to re usage.
Diffstat (limited to 'Lib/glob.py')
-rw-r--r--Lib/glob.py6
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