commands: use util.re.compile instead of util.compilere
authorSiddharth Agarwal <sid0@fb.com>
Tue, 15 Jul 2014 14:52:22 -0700
changeset 21911 760f4055e656
parent 21910 fc04fdb2b349
child 21912 b6ef4469191d
commands: use util.re.compile instead of util.compilere
mercurial/commands.py
--- a/mercurial/commands.py	Tue Jul 15 14:50:58 2014 -0700
+++ b/mercurial/commands.py	Tue Jul 15 14:52:22 2014 -0700
@@ -3303,7 +3303,7 @@
     if opts.get('ignore_case'):
         reflags |= re.I
     try:
-        regexp = util.compilere(pattern, reflags)
+        regexp = util.re.compile(pattern, reflags)
     except re.error, inst:
         ui.warn(_("grep: invalid match pattern: %s\n") % inst)
         return 1