# HG changeset patch # User Ian Moody # Date 2019-03-09 02:07:09 # Node ID 2b21c7fbb3a109dab329df8f6e79987cebbcb4de # Parent 16d050678047133bffbf161565586ee81bf39ae3 py3: use % instead of .format() on a bytestring Differential Revision: https://phab.mercurial-scm.org/D6112 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -1002,7 +1002,7 @@ def template_review(context, mapping): 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())