Patchwork D7215: py3: use %d to format an int

login
register
mail settings
Submitter phabricator
Date Nov. 2, 2019, 10:22 p.m.
Message ID <differential-rev-PHID-DREV-tcuwjuse2afj7iqtabkp-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42700/
State Superseded
Headers show

Comments

phabricator - Nov. 2, 2019, 10:22 p.m.
Kwan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Avoids a TypeError under py3.  Fortunately this is very much an edge case since
  it requires the user to have deliberately created a local tag of the form
  'D\d+' that isn't truthful.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

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
@@ -441,7 +441,7 @@ 
                 )
                 unfi.ui.warn(
                     _(
-                        b'D%s: local tag removed - does not match '
+                        b'D%d: local tag removed - does not match '
                         b'Differential history\n'
                     )
                     % drev