# HG changeset patch # User Matt Harbison # Date 1619843319 14400 # 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 -r 553451522113 -r 067f2c53fb24 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__'] = {