# HG changeset patch # User Matt Harbison # Date 2021-05-01 04:28:39 # Node ID 067f2c53fb24506c9e9fb4639871b13b19a85f8a # Parent 553451522113ee0304835b8005e74695f36d1333 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 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -403,7 +403,7 @@ def readurltoken(ui): 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__'] = {