Patchwork D9751: perf: don't turn byte to string when formatting perfbranchmap

login
register
mail settings
Submitter phabricator
Date Jan. 13, 2021, 4:27 p.m.
Message ID <differential-rev-PHID-DREV-nfnipncpdfxuas2kmpkm-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48062/
State Superseded
Headers show

Comments

phabricator - Jan. 13, 2021, 4:27 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I am not sure why this `str` all is there is the first place.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9751

AFFECTED FILES
  contrib/perf.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -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()