wireprotoserver: rename webproto to httpv1protocolhandler
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 12 Feb 2018 17:19:51 -0800
changeset 36222 6ba5b03f3645
parent 36221 62bca1c50e96
child 36223 2e07dc514073
wireprotoserver: rename webproto to httpv1protocolhandler This matches our naming convention for the SSH server's protocol handler. Differential Revision: https://phab.mercurial-scm.org/D2218
mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py	Mon Feb 12 17:16:52 2018 -0800
+++ b/mercurial/wireprotoserver.py	Mon Feb 12 17:19:51 2018 -0800
@@ -105,7 +105,7 @@
 
     return ''.join(chunks)
 
-class webproto(baseprotocolhandler):
+class httpv1protocolhandler(baseprotocolhandler):
     def __init__(self, req, ui):
         self._req = req
         self._ui = ui
@@ -201,7 +201,7 @@
     if cmd not in wireproto.commands:
         return None
 
-    proto = webproto(req, repo.ui)
+    proto = httpv1protocolhandler(req, repo.ui)
 
     return {
         'cmd': cmd,