Submitter | phabricator |
---|---|
Date | March 12, 2021, 6:09 p.m. |
Message ID | <differential-rev-PHID-DREV-bexnrudl43aannzm4dbo-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/48495/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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'