mercurial/fileset.py
changeset 25660 328739ea70c3
parent 25654 af329a84310c
child 25800 f8f7ae0f4d98
--- a/mercurial/fileset.py	Tue Jun 23 22:38:21 2015 -0700
+++ b/mercurial/fileset.py	Tue Jun 23 22:20:08 2015 -0700
@@ -280,7 +280,7 @@
     try:
         # i18n: "grep" is a keyword
         r = re.compile(getstring(x, _("grep requires a pattern")))
-    except re.error, e:
+    except re.error as e:
         raise error.ParseError(_('invalid match pattern: %s') % e)
     return [f for f in mctx.existing() if r.search(mctx.ctx[f].data())]