hgext/phabricator.py
changeset 46907 ffd3e823a7e5
parent 46037 9624bf057c2a
child 47012 d55b71393907
child 47056 067f2c53fb24
--- a/hgext/phabricator.py	Sun Apr 11 23:54:35 2021 +0200
+++ b/hgext/phabricator.py	Mon Apr 12 03:01:04 2021 +0200
@@ -103,6 +103,7 @@
 from mercurial.utils import (
     procutil,
     stringutil,
+    urlutil,
 )
 from . import show
 
@@ -366,7 +367,7 @@
                     process(k, v)
 
     process(b'', params)
-    return util.urlreq.urlencode(flatparams)
+    return urlutil.urlreq.urlencode(flatparams)
 
 
 def readurltoken(ui):
@@ -381,7 +382,7 @@
             _(b'config %s.%s is required') % (b'phabricator', b'url')
         )
 
-    res = httpconnectionmod.readauthforuri(ui, url, util.url(url).user)
+    res = httpconnectionmod.readauthforuri(ui, url, urlutil.url(url).user)
     token = None
 
     if res: