Read about our upcoming Code of Conduct on this issue

Commit ffa0ecb0 authored by Matt Harbison's avatar Matt Harbison
Browse files

phabricator: adapt to the new `urlutil.url()` API

This avoids a bunch of deprecation warnings in the tests.

Differential Revision:

branch : stable
parent 553451522113
Pipeline #21531 passed with stages
in 31 minutes and 56 seconds
......@@ -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__'] = {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment