# HG changeset patch # User Martin von Zweigbergk # Date 2019-11-08 18:13:05 # 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 @@ class localrepository(object): 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)