fix: replace str() by b'%d' for formatting integer
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 07 Nov 2019 03:46:48 -0800
changeset 43501 b2f95f9d3588
parent 43500 6337b10c46bc
child 43502 c093cc6e6c99
fix: replace str() by b'%d' for formatting integer Differential Revision: https://phab.mercurial-scm.org/D7303
hgext/fix.py
--- 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))