diff -r 515014d72aa2 -r c887bab2dccf mercurial/ui.py --- a/mercurial/ui.py Fri Jun 11 23:51:27 2021 -0400 +++ b/mercurial/ui.py Fri Jun 11 23:57:14 2021 -0400 @@ -1065,7 +1065,7 @@ This method exist as `getpath` need a ui for potential warning message. """ msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil' - self.deprecwarn(msg, '6.0') + self.deprecwarn(msg, b'6.0') return self.paths.getpath(self, *args, **kwargs) @property