# HG changeset patch # User Emmanuel Leblond # Date 2019-11-01 16:35:36 # Node ID 899e55e2d375eeef38f373cb81fa780d2500bd7d # Parent dd64e229c46b18bd877b2693c526a7f248409394 py3: fix exception message encoding in scmutil.py's simplekeyvaluefile.read Differential Revision: https://phab.mercurial-scm.org/D7193 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1854,7 +1854,7 @@ class simplekeyvaluefile(object): 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):