changeset 36856:e85574176467

hgweb: remove unused methods on wsgirequest writelines() isn't used in our code base. close() was a no-op. It is an optional method per PEP 3333. My eventual goal is to kill the wsgirequest class, hence why I'm removing code. Differential Revision: https://phab.mercurial-scm.org/D2747
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 10 Mar 2018 10:46:08 -0800
parents 0bc771bba220
children d6cd1451212e
files mercurial/hgweb/request.py
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Thu Mar 08 17:17:48 2018 -0800
+++ b/mercurial/hgweb/request.py	Sat Mar 10 10:46:08 2018 -0800
@@ -306,16 +306,9 @@
                 if inst[0] != errno.ECONNRESET:
                     raise
 
-    def writelines(self, lines):
-        for line in lines:
-            self.write(line)
-
     def flush(self):
         return None
 
-    def close(self):
-        return None
-
 def wsgiapplication(app_maker):
     '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
     can and should now be used as a WSGI application.'''