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

login
register
mail settings
Submitter phabricator
Date May 1, 2021, 5:51 a.m.
Message ID <differential-rev-PHID-DREV-zxpkn4pqhdzfdopbsiux-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48860/
State Superseded
Headers show

Comments

phabricator - May 1, 2021, 5:51 a.m.
mharbison72 created this revision.
Herald added subscribers: mercurial-patches, Kwan.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This avoids a bunch of deprecation warnings in the tests.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D10541

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: Kwan, mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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__'] = {