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
--- 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__'] = {