Mercurial > public > mercurial-scm > hg-stable
diff mercurial/crecord.py @ 43364:dd64e229c46b stable
py3: fix crecord.py's editpatchwitheditor exception message encoding
Differential Revision: https://phab.mercurial-scm.org/D7194
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> |
---|---|
date | Fri, 01 Nov 2019 17:38:07 +0100 |
parents | b02387005515 |
children | 117b41b1859d |
line wrap: on
line diff
--- a/mercurial/crecord.py Fri Nov 01 17:39:17 2019 +0100 +++ b/mercurial/crecord.py Fri Nov 01 17:38:07 2019 +0100 @@ -1816,7 +1816,7 @@ try: patch = self.ui.edit(patch.getvalue(), b"", action=b"diff") except error.Abort as exc: - self.errorstr = str(exc) + self.errorstr = stringutil.forcebytestr(exc) return None finally: self.stdscr.clear()