# HG changeset patch # User Matt Harbison # Date 1623469829 14400 # Node ID 65333ecc8b340a8b278770bb85602caa7da0d529 # Parent 0ef8231e413f5fec7298ca8f529a003ac3967a80 urlutil: use the deprecation warning function on the `ui` object PyCharm flagged this as not existing, and I suspect a copy/paste error. Differential Revision: https://phab.mercurial-scm.org/D10871 diff -r 0ef8231e413f -r 65333ecc8b34 mercurial/utils/urlutil.py --- a/mercurial/utils/urlutil.py Wed Jun 02 11:25:18 2021 +0200 +++ b/mercurial/utils/urlutil.py Fri Jun 11 23:50:29 2021 -0400 @@ -684,7 +684,7 @@ path to a repo. """ msg = b'getpath is deprecated, use `get_*` functions from urlutil' - self.deprecwarn(msg, '6.0') + ui.deprecwarn(msg, '6.0') # Only fall back to default if no path was requested. if name is None: if not default: