diff -r 497effb0a04a -r 331ab85e910b mercurial/util.py --- 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' % (