Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 36452:04c319a07c7b
py3: hunt down str(exception) instances and use util.forcebytestr
I decided to grep around for \sstr\( and see what low-hanging fruit
that showed me. This was part of that hunt. That grep pattern still
has some things worth exploring.
Differential Revision: https://phab.mercurial-scm.org/D2440
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 25 Feb 2018 23:08:41 -0500 |
parents | 7b86aa31b004 |
children | c28b6d609c47 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Feb 25 22:30:14 2018 -0500 +++ b/mercurial/localrepo.py Sun Feb 25 23:08:41 2018 -0500 @@ -259,7 +259,8 @@ bundle2.processbundle(self._repo, b) raise except error.PushRaced as exc: - raise error.ResponseError(_('push failed:'), str(exc)) + raise error.ResponseError(_('push failed:'), + util.forcebytestr(exc)) # End of _basewirecommands interface.