comparison mercurial/lsprof.py @ 40193:b25fbe7e494e

py3: use %d to format ints Differential Revision: https://phab.mercurial-scm.org/D5009
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 12 Oct 2018 17:35:54 +0200
parents d4e5b2653693
children 56ea22fa55f0
comparison
equal deleted inserted replaced
40192:b8f6a99ad89b 40193:b25fbe7e494e
46 if file is None: 46 if file is None:
47 file = sys.stdout 47 file = sys.stdout
48 d = self.data 48 d = self.data
49 if top is not None: 49 if top is not None:
50 d = d[:top] 50 d = d[:top]
51 cols = "% 12s %12s %11.4f %11.4f %s\n" 51 cols = "% 12d %12d %11.4f %11.4f %s\n"
52 hcols = "% 12s %12s %12s %12s %s\n" 52 hcols = "% 12s %12s %12s %12s %s\n"
53 file.write(hcols % ("CallCount", "Recursive", "Total(s)", 53 file.write(hcols % ("CallCount", "Recursive", "Total(s)",
54 "Inline(s)", "module:lineno(function)")) 54 "Inline(s)", "module:lineno(function)"))
55 count = 0 55 count = 0
56 for e in d: 56 for e in d: