Mercurial > public > mercurial-scm > hg-stable
diff hgext/phabricator.py @ 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 | e7b84ffb06d9 |
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())