# HG changeset patch # User Augie Fackler # Date 1573067945 18000 # Node ID 5c9daf7df2b481d69f6cc1fbd1d81cf5b3053410 # Parent ab9b0a20b9e6b7f1f16f643486ff20a6d44ca2d5 statprof: correctly always pass a str as the thread name Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7259 diff -r ab9b0a20b9e6 -r 5c9daf7df2b4 mercurial/statprof.py --- a/mercurial/statprof.py Wed Nov 06 13:46:16 2019 +0100 +++ b/mercurial/statprof.py Wed Nov 06 14:19:05 2019 -0500 @@ -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()