diff -r 47fac1692ede -r 9f70512ae2cf mercurial/lsprof.py --- a/mercurial/lsprof.py Sun Nov 10 07:30:14 2019 -0800 +++ b/mercurial/lsprof.py Fri Nov 08 11:19:20 2019 -0800 @@ -135,9 +135,9 @@ mname = _fn2mod[code.co_filename] = k break else: - mname = _fn2mod[code.co_filename] = r'<%s>' % code.co_filename + mname = _fn2mod[code.co_filename] = '<%s>' % code.co_filename - res = r'%s:%d(%s)' % (mname, code.co_firstlineno, code.co_name) + res = '%s:%d(%s)' % (mname, code.co_firstlineno, code.co_name) if sys.version_info.major >= 3: res = res.encode('latin-1')