# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-26 11:52:45 # Node ID 53238678b1ca191aed76eb139da85459bc5b63bc # Parent db8531c459532f7bb78eb9c0424e0a9d25806bdf py3: use '%d' to convert integers to bytes diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2712,7 +2712,7 @@ def diffstat(lines, width=80): 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' %