mercurial/util.py
changeset 39286 331ab85e910b
parent 39285 497effb0a04a
child 39287 e00123f63410
--- a/mercurial/util.py	Tue Aug 21 17:13:35 2018 -0400
+++ b/mercurial/util.py	Tue Aug 21 17:15:51 2018 -0400
@@ -2929,7 +2929,7 @@
     '''
 
     def wrapper(*args, **kwargs):
-        with timedcm() as time_stats:
+        with timedcm(pycompat.bytestr(func.__name__)) as time_stats:
             result = func(*args, **kwargs)
         stderr = procutil.stderr
         stderr.write('%s%s: %s\n' % (