Mercurial > hg
changeset 43365:899e55e2d375 stable
py3: fix exception message encoding in scmutil.py's simplekeyvaluefile.read
Differential Revision: https://phab.mercurial-scm.org/D7193
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> |
---|---|
date | Fri, 01 Nov 2019 17:35:36 +0100 |
parents | dd64e229c46b |
children | ee3a55c8fd0f |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Fri Nov 01 17:38:07 2019 +0100 +++ b/mercurial/scmutil.py Fri Nov 01 17:35:36 2019 +0100 @@ -1854,7 +1854,7 @@ raise error.CorruptedState(e % self.firstlinekey) d.update(updatedict) except ValueError as e: - raise error.CorruptedState(str(e)) + raise error.CorruptedState(stringutil.forcebytestr(e)) return d def write(self, data, firstline=None):