diff -r 2372284d9457 -r 687b865b95ad mercurial/lsprofcalltree.py --- a/mercurial/lsprofcalltree.py Sun Oct 06 09:45:02 2019 -0400 +++ b/mercurial/lsprofcalltree.py Sun Oct 06 09:48:39 2019 -0400 @@ -18,9 +18,9 @@ def label(code): if isinstance(code, str): # built-in functions ('~' sorts at the end) - return '~' + pycompat.sysbytes(code) + return b'~' + pycompat.sysbytes(code) else: - return '%s %s:%d' % ( + return b'%s %s:%d' % ( pycompat.sysbytes(code.co_name), pycompat.sysbytes(code.co_filename), code.co_firstlineno,