# HG changeset patch # User Gregory Szorc # Date 2018-10-12 15:35:54 # Node ID b25fbe7e494ef30f2674bcd10395677550c265a0 # Parent b8f6a99ad89b2775639c84987f799ef263fb91bb py3: use %d to format ints Differential Revision: https://phab.mercurial-scm.org/D5009 diff --git a/mercurial/lsprof.py b/mercurial/lsprof.py --- a/mercurial/lsprof.py +++ b/mercurial/lsprof.py @@ -48,7 +48,7 @@ class Stats(object): d = self.data if top is not None: d = d[:top] - cols = "% 12s %12s %11.4f %11.4f %s\n" + cols = "% 12d %12d %11.4f %11.4f %s\n" hcols = "% 12s %12s %12s %12s %s\n" file.write(hcols % ("CallCount", "Recursive", "Total(s)", "Inline(s)", "module:lineno(function)"))