Mercurial > public > mercurial-scm > hg-stable
diff mercurial/utils/urlutil.py @ 47418:c887bab2dccf
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 11 Jun 2021 23:57:14 -0400 |
parents | 515014d72aa2 |
children | ea50caada82d |
line wrap: on
line diff
--- 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: