diff mercurial/progress.py @ 36423:2831d918e1b4

py3: convert known-int values to bytes using %d I decided to grep around for \sstr\( and see what low-hanging fruit that showed me. This was part of that hunt. That grep pattern still has some things worth exploring. Differential Revision: https://phab.mercurial-scm.org/D2441
author Augie Fackler <augie@google.com>
date Sun, 25 Feb 2018 23:09:07 -0500
parents 707aba4d48b5
children 6bd9f18d31a8
line wrap: on
line diff
--- a/mercurial/progress.py	Sun Feb 25 23:08:41 2018 -0500
+++ b/mercurial/progress.py	Sun Feb 25 23:09:07 2018 -0500
@@ -121,7 +121,7 @@
                 if total:
                     add = b'%*d/%d' % (len(str(total)), pos, total)
                 else:
-                    add = str(pos)
+                    add = b'%d' % pos
             elif indicator.startswith('item') and item:
                 slice = 'end'
                 if '-' in indicator: