py3: use % instead of .format() on a bytestring
authorIan Moody <moz-ian@perix.co.uk>
Sat, 09 Mar 2019 02:07:09 +0000
changeset 41906 2b21c7fbb3a1
parent 41905 16d050678047
child 41907 9da97f49d4f4
py3: use % instead of .format() on a bytestring Differential Revision: https://phab.mercurial-scm.org/D6112
hgext/phabricator.py
--- a/hgext/phabricator.py	Fri Mar 08 22:26:43 2019 +0000
+++ b/hgext/phabricator.py	Sat Mar 09 02:07:09 2019 +0000
@@ -1002,7 +1002,7 @@
     if m:
         return templateutil.hybriddict({
             b'url': m.group(r'url'),
-            b'id': b"D{}".format(m.group(r'id')),
+            b'id': b"D%s" % m.group(r'id'),
         })
     else:
         tags = ctx.repo().nodetags(ctx.node())