changeset 36849:0bc771bba220

wireprotoserver: remove unused argument from _handlehttperror() Differential Revision: https://phab.mercurial-scm.org/D2746
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 08 Mar 2018 17:17:48 -0800
parents 16292bbda39c
children e85574176467
files mercurial/wireprotoserver.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py	Sat Mar 10 10:44:56 2018 -0800
+++ b/mercurial/wireprotoserver.py	Thu Mar 08 17:17:48 2018 -0800
@@ -192,7 +192,7 @@
     if req.dispatchpath:
         res = _handlehttperror(
             hgwebcommon.ErrorResponse(hgwebcommon.HTTP_NOT_FOUND), wsgireq,
-            req, cmd)
+            req)
 
         return True, res
 
@@ -206,7 +206,7 @@
     try:
         res = _callhttp(repo, wsgireq, req, proto, cmd)
     except hgwebcommon.ErrorResponse as e:
-        res = _handlehttperror(e, wsgireq, req, cmd)
+        res = _handlehttperror(e, wsgireq, req)
 
     return True, res
 
@@ -313,7 +313,7 @@
         return []
     raise error.ProgrammingError('hgweb.protocol internal failure', rsp)
 
-def _handlehttperror(e, wsgireq, req, cmd):
+def _handlehttperror(e, wsgireq, req):
     """Called when an ErrorResponse is raised during HTTP request processing."""
 
     # Clients using Python's httplib are stateful: the HTTP client