py3: use '%d' to convert integers to bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 26 Jun 2017 17:22:45 +0530
changeset 33104 53238678b1ca
parent 33103 db8531c45953
child 33105 a5e1393f61a2
py3: use '%d' to convert integers to bytes
mercurial/patch.py
--- a/mercurial/patch.py	Sun Jun 25 08:36:51 2017 +0530
+++ b/mercurial/patch.py	Mon Jun 26 17:22:45 2017 +0530
@@ -2712,7 +2712,7 @@
         if isbinary:
             count = 'Bin'
         else:
-            count = adds + removes
+            count = '%d' % (adds + removes)
         pluses = '+' * scale(adds)
         minuses = '-' * scale(removes)
         output.append(' %s%s |  %*s %s%s\n' %