D6112: py3: use % instead of .format() on a bytestring

Kwan (Ian Moody) phabricator at mercurial-scm.org
Sat Mar 9 20:50:49 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2b21c7fbb3a1: py3: use % instead of .format() on a bytestring (authored by Kwan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6112?vs=14425&id=14437

REVISION DETAIL
  https://phab.mercurial-scm.org/D6112

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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())



To: Kwan, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list