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

login
register
mail settings
Submitter phabricator
Date Nov. 8, 2019, 5:07 p.m.
Message ID <209eecaeaea18c40eaa8294feb5d427a@localhost.localdomain>
Download mbox | patch
Permalink /patch/42973/
State Not Applicable
Headers show

Comments

phabricator - Nov. 8, 2019, 5:07 p.m.
Closed by commit rHGb2f95f9d3588: fix: replace str() by b&#039;%d&#039; for formatting integer (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7303?vs=17716&id=17791

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7303/new/

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

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, indygreg
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))