mercurial/commands.py
changeset 36492 6e90c59b6da1
parent 36473 ab5f18a9dcac
child 36511 aa3294027936
--- a/mercurial/commands.py	Thu Mar 01 23:52:30 2018 +0530
+++ b/mercurial/commands.py	Thu Mar 01 23:54:52 2018 +0530
@@ -2370,7 +2370,7 @@
     try:
         regexp = util.re.compile(pattern, reflags)
     except re.error as inst:
-        ui.warn(_("grep: invalid match pattern: %s\n") % inst)
+        ui.warn(_("grep: invalid match pattern: %s\n") % pycompat.bytestr(inst))
         return 1
     sep, eol = ':', '\n'
     if opts.get('print0'):