# HG changeset patch # User Martin von Zweigbergk <martinvonz@google.com> # Date 1573236785 28800 # Fri Nov 08 10:13:05 2019 -0800 # Branch stable # Node ID bf87f5ff2ebfcf18cf1b79c909c6039b541cb672 # Parent e513e87b0476cc9a6eb31abe420448877fa9c902 py3: avoid `b'%s' % type(...)` in a ProgrammingError Differential Revision: https://phab.mercurial-scm.org/D7363 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -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)