Mercurial > hg-stable
changeset 43427:bf87f5ff2ebf stable
py3: avoid `b'%s' % type(...)` in a ProgrammingError
Differential Revision: https://phab.mercurial-scm.org/D7363
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Nov 2019 10:13:05 -0800 |
parents | e513e87b0476 |
children | a825ba8eb0a1 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Nov 09 10:31:58 2019 +0100 +++ b/mercurial/localrepo.py Fri Nov 08 10:13:05 2019 -0800 @@ -1568,7 +1568,7 @@ else: raise error.ProgrammingError( b"unsupported changeid '%s' of type %s" - % (changeid, type(changeid)) + % (changeid, pycompat.sysstr(type(changeid))) ) return context.changectx(self, rev, node)