diff -r c093cc6e6c99 -r 313e3a279828 mercurial/pycompat.py --- a/mercurial/pycompat.py Thu Nov 07 03:59:22 2019 -0800 +++ b/mercurial/pycompat.py Thu Nov 07 13:18:19 2019 -0500 @@ -423,7 +423,7 @@ if isinstance(filename, str): return filename else: - raise TypeError(r"expect str, not %s" % type(filename).__name__) + raise TypeError("expect str, not %s" % type(filename).__name__) # In Python 2, fsdecode() has a very chance to receive bytes. So it's # better not to touch Python 2 part as it's already working fine.