mercurial/lsprofcalltree.py
changeset 43077 687b865b95ad
parent 43076 2372284d9457
child 48875 6000f5b25c9b
--- 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,