Patchwork D7259: statprof: correctly always pass a str as the thread name

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:31 a.m.
Message ID <1d63fb481ce2577a57265c50a3c8225c@localhost.localdomain>
Download mbox | patch
Permalink /patch/42859/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:31 a.m.
Closed by commit rHG5c9daf7df2b4: statprof: correctly always pass a str as the thread name (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7259?vs=17629&id=17676

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7259/new/

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

AFFECTED FILES
  mercurial/statprof.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -352,7 +352,7 @@ 
             frame = inspect.currentframe()
             tid = [k for k, f in sys._current_frames().items() if f == frame][0]
             state.thread = threading.Thread(
-                target=samplerthread, args=(tid,), name=b"samplerthread"
+                target=samplerthread, args=(tid,), name="samplerthread"
             )
             state.thread.start()