# HG changeset patch # User Matt Harbison # Date 1623470234 14400 # Node ID c887bab2dccfd806e8fd8b5a1839a9249317fe8b # Parent 515014d72aa242f9143c4f99aea47ace1c2981c0 py3: byteify the version string passed to the deprecation warning method The other callers were already correct. Differential Revision: https://phab.mercurial-scm.org/D10873 diff -r 515014d72aa2 -r c887bab2dccf mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Jun 11 23:51:27 2021 -0400 +++ b/mercurial/localrepo.py Fri Jun 11 23:57:14 2021 -0400 @@ -2759,7 +2759,7 @@ "`full` argument for `repo.updatecaches` is deprecated\n" "(use `caches=repository.CACHE_ALL` instead)" ) - self.ui.deprecwarn(msg, "5.9") + self.ui.deprecwarn(msg, b"5.9") caches = repository.CACHES_ALL if full == b"post-clone": caches = repository.CACHES_POST_CLONE 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 diff -r 515014d72aa2 -r c887bab2dccf mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py Fri Jun 11 23:51:27 2021 -0400 +++ b/mercurial/utils/urlutil.py Fri Jun 11 23:57:14 2021 -0400 @@ -688,7 +688,7 @@ path to a repo. """ msg = b'getpath is deprecated, use `get_*` functions from urlutil' - ui.deprecwarn(msg, '6.0') + ui.deprecwarn(msg, b'6.0') # Only fall back to default if no path was requested. if name is None: if not default: