changeset 41911:2b21c7fbb3a1

py3: use % instead of .format() on a bytestring Differential Revision: https://phab.mercurial-scm.org/D6112
author Ian Moody <moz-ian@perix.co.uk>
date Sat, 09 Mar 2019 02:07:09 +0000
parents 16d050678047
children 9da97f49d4f4
files hgext/phabricator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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())