# HG changeset patch # User Gregory Szorc # Date 1520707568 28800 # Node ID e855741764673392c52588003e47004a44e69e26 # Parent 0bc771bba2208a646b116b7106e57ba5b411e69c 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 diff -r 0bc771bba220 -r e85574176467 mercurial/hgweb/request.py --- 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.'''