Mercurial > hg-stable
changeset 36418:6f6063553502
py3: use util.forcebytestr instead of str to convert error messages
Differential Revision: https://phab.mercurial-scm.org/D2411
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 01:20:20 +0530 |
parents | dbf34d0ef9f6 |
children | 469c7e146c8f |
files | hgext/mq.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Sat Feb 24 01:19:26 2018 +0530 +++ b/hgext/mq.py Sat Feb 24 01:20:20 2018 +0530 @@ -855,7 +855,7 @@ files=files, eolmode=None) return (True, list(files), fuzz) except Exception as inst: - self.ui.note(str(inst) + '\n') + self.ui.note(util.forcebytestr(inst) + '\n') if not self.ui.verbose: self.ui.warn(_("patch failed, unable to continue (try -v)\n")) self.ui.traceback()