mercurial/statprof.py
changeset 39092 8943c1352b6c
parent 38697 3c569172848d
child 40191 4b7eb862692e
--- a/mercurial/statprof.py	Wed Jul 25 17:11:59 2018 +0200
+++ b/mercurial/statprof.py	Fri Jun 01 11:36:06 2018 +0200
@@ -356,7 +356,7 @@
             stack = sample.stack
             sites = ['\1'.join([s.path, str(s.lineno), s.function])
                      for s in stack]
-            file.write(time + '\0' + '\0'.join(sites) + '\n')
+            file.write("%s\0%s\n" % (time, '\0'.join(sites)))
 
 def load_data(path):
     lines = open(path, 'r').read().splitlines()