mercurial/wireproto.py
changeset 36071 038bcb759b75
parent 36070 90ca4986616c
child 36073 cd6ab329c5c7
--- a/mercurial/wireproto.py	Thu Feb 01 17:12:07 2018 -0800
+++ b/mercurial/wireproto.py	Wed Feb 07 20:22:44 2018 -0800
@@ -587,7 +587,7 @@
 
     return ui.configbool('server', 'bundle1')
 
-def supportedcompengines(ui, proto, role):
+def supportedcompengines(ui, role):
     """Obtain the list of supported compression engines for a request."""
     assert role in (util.CLIENTROLE, util.SERVERROLE)
 
@@ -824,7 +824,7 @@
         # FUTURE advertise minrx and mintx after consulting config option
         caps.append('httpmediatype=0.1rx,0.1tx,0.2tx')
 
-        compengines = supportedcompengines(repo.ui, proto, util.SERVERROLE)
+        compengines = supportedcompengines(repo.ui, util.SERVERROLE)
         if compengines:
             comptypes = ','.join(urlreq.quote(e.wireprotosupport().name)
                                  for e in compengines)