mercurial/httpconnection.py
changeset 46907 ffd3e823a7e5
parent 46819 d4ba4d51f85f
child 48875 6000f5b25c9b
--- a/mercurial/httpconnection.py	Sun Apr 11 23:54:35 2021 +0200
+++ b/mercurial/httpconnection.py	Mon Apr 12 03:01:04 2021 +0200
@@ -18,6 +18,10 @@
     pycompat,
     util,
 )
+from .utils import (
+    urlutil,
+)
+
 
 urlerr = util.urlerr
 urlreq = util.urlreq
@@ -99,7 +103,7 @@
         if not prefix:
             continue
 
-        prefixurl = util.url(prefix)
+        prefixurl = urlutil.url(prefix)
         if prefixurl.user and prefixurl.user != user:
             # If a username was set in the prefix, it must match the username in
             # the URI.