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

login
register
mail settings
Submitter phabricator
Date March 10, 2019, 1:50 a.m.
Message ID <1751961a5fd187cd8ec6933e4cf5bb87@localhost.localdomain>
Download mbox | patch
Permalink /patch/39179/
State Not Applicable
Headers show

Comments

phabricator - March 10, 2019, 1:50 a.m.
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




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

Patch

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())