Patchwork D7303: fix: replcace str() by b'%d' for formatting integer

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 11:47 a.m.
Message ID <differential-rev-PHID-DREV-hzugpbwzz2vl3m4qisio-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42899/
State Superseded
Headers show

Comments

phabricator - Nov. 7, 2019, 11:47 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -681,7 +681,7 @@ 
             if rev is None:
                 ui.warn(_(b'wdir'), label=b'evolve.rev')
             else:
-                ui.warn((str(rev)), label=b'evolve.rev')
+                ui.warn(b'%d' % rev, label=b'evolve.rev')
             ui.warn(b'] %s: %s\n' % (fixername, line))