perf: don't turn byte to string when formatting perfbranchmap
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 13 Jan 2021 17:21:51 +0100
changeset 46255 cce05a6c271f
parent 46254 c4b792fa109e
child 46256 eb981412d91e
perf: don't turn byte to string when formatting perfbranchmap I am not sure why this `str` all is there is the first place. Differential Revision: https://phab.mercurial-scm.org/D9751
contrib/perf.py
--- a/contrib/perf.py	Fri Dec 18 14:45:28 2020 +0100
+++ b/contrib/perf.py	Wed Jan 13 17:21:51 2021 +0100
@@ -3484,7 +3484,7 @@
             printname = name
             if name is None:
                 printname = b'unfiltered'
-            timer(getbranchmap(name), title=str(printname))
+            timer(getbranchmap(name), title=printname)
     finally:
         branchcacheread.restore()
         branchcachewrite.restore()