mercurial/httppeer.py
changeset 50421 ed052780ad5e
parent 49759 cfe8d88a453e
child 50437 3a2df812e1c7
--- a/mercurial/httppeer.py	Tue Apr 04 11:58:35 2023 +0200
+++ b/mercurial/httppeer.py	Fri Apr 07 15:42:49 2023 +0200
@@ -592,7 +592,7 @@
     return respurl, info
 
 
-def makepeer(ui, path, opener=None, requestbuilder=urlreq.request):
+def _make_peer(ui, path, opener=None, requestbuilder=urlreq.request):
     """Construct an appropriate HTTP peer instance.
 
     ``opener`` is an ``url.opener`` that should be used to establish
@@ -628,7 +628,7 @@
                 _(b'Python support for SSL and HTTPS is not installed')
             )
 
-        inst = makepeer(ui, path)
+        inst = _make_peer(ui, path)
 
         return inst
     except error.RepoError as httpexception: