comparison mercurial/utils/urlutil.py @ 47412: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
comparison
equal deleted inserted replaced
47411:515014d72aa2 47412:c887bab2dccf
686 686
687 Returns None if ``name`` is not a registered path, a URI, or a local 687 Returns None if ``name`` is not a registered path, a URI, or a local
688 path to a repo. 688 path to a repo.
689 """ 689 """
690 msg = b'getpath is deprecated, use `get_*` functions from urlutil' 690 msg = b'getpath is deprecated, use `get_*` functions from urlutil'
691 ui.deprecwarn(msg, '6.0') 691 ui.deprecwarn(msg, b'6.0')
692 # Only fall back to default if no path was requested. 692 # Only fall back to default if no path was requested.
693 if name is None: 693 if name is None:
694 if not default: 694 if not default:
695 default = () 695 default = ()
696 elif not isinstance(default, (tuple, list)): 696 elif not isinstance(default, (tuple, list)):