match: use util.re.compile instead of util.compilere
authorSiddharth Agarwal <sid0@fb.com>
Tue, 15 Jul 2014 14:49:45 -0700
changeset 21909 335bb8b80443
parent 21908 cad9dadc9d26
child 21910 fc04fdb2b349
match: use util.re.compile instead of util.compilere
mercurial/match.py
--- a/mercurial/match.py	Tue Jul 15 14:40:43 2014 -0700
+++ b/mercurial/match.py	Tue Jul 15 14:49:45 2014 -0700
@@ -12,7 +12,7 @@
 def _rematcher(regex):
     '''compile the regexp with the best available regexp engine and return a
     matcher function'''
-    m = util.compilere(regex)
+    m = util.re.compile(regex)
     try:
         # slightly faster, provided by facebook's re2 bindings
         return m.test_match