urlutil: use the deprecation warning function on the `ui` object
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 11 Jun 2021 23:50:29 -0400
changeset 47410 65333ecc8b34
parent 47409 0ef8231e413f
child 47411 515014d72aa2
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
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: