changeset 21911:760f4055e656

commands: use util.re.compile instead of util.compilere
author Siddharth Agarwal <sid0@fb.com>
date Tue, 15 Jul 2014 14:52:22 -0700
parents fc04fdb2b349
children b6ef4469191d
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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