py3: avoid `b'%s' % type(...)` in a ProgrammingError stable
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 08 Nov 2019 10:13:05 -0800
branchstable
changeset 43587 bf87f5ff2ebf
parent 43580 e513e87b0476
child 43588 a825ba8eb0a1
py3: avoid `b'%s' % type(...)` in a ProgrammingError Differential Revision: https://phab.mercurial-scm.org/D7363
mercurial/localrepo.py
--- 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)