py3: use util.forcebytestr instead of str to convert error messages
Differential Revision: https://phab.mercurial-scm.org/D2411
--- 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()