changeset 43549:b2f95f9d3588

fix: replace str() by b'%d' for formatting integer Differential Revision: https://phab.mercurial-scm.org/D7303
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 07 Nov 2019 03:46:48 -0800
parents 6337b10c46bc
children c093cc6e6c99
files hgext/fix.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/fix.py	Thu Jan 08 02:03:00 2009 +0000
+++ b/hgext/fix.py	Thu Nov 07 03:46:48 2019 -0800
@@ -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))