phabricator: adapt to the new `urlutil.url()` API stable 5.8
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 01 May 2021 00:28:39 -0400
branchstable
changeset 47056 067f2c53fb24
parent 47055 553451522113
child 47057 7431f5ab0d2a
child 47058 381a10ef6a4a
phabricator: adapt to the new `urlutil.url()` API This avoids a bunch of deprecation warnings in the tests. Differential Revision: https://phab.mercurial-scm.org/D10541
hgext/phabricator.py
--- a/hgext/phabricator.py	Fri Apr 30 17:36:09 2021 -0400
+++ b/hgext/phabricator.py	Sat May 01 00:28:39 2021 -0400
@@ -403,7 +403,7 @@
 def callconduit(ui, name, params):
     """call Conduit API, params is a dict. return json.loads result, or None"""
     host, token = readurltoken(ui)
-    url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo()
+    url, authinfo = urlutil.url(b'/'.join([host, b'api', name])).authinfo()
     ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params)))
     params = params.copy()
     params[b'__conduit__'] = {