branch | stable |
changeset 46688 | 7e02e7c721b0 |
parent 46413 | ed43b6fa847e |
child 46699 | 184e0ae0a4b2 |
--- a/mercurial/commands.py Thu Mar 11 17:14:30 2021 -0500 +++ b/mercurial/commands.py Thu Mar 11 17:16:29 2021 -0500 @@ -3444,7 +3444,8 @@ regexp = util.re.compile(pattern, reflags) except re.error as inst: ui.warn( - _(b"grep: invalid match pattern: %s\n") % pycompat.bytestr(inst) + _(b"grep: invalid match pattern: %s\n") + % stringutil.forcebytestr(inst) ) return 1 sep, eol = b':', b'\n'