diff mercurial/hgweb/request.py @ 36851:d6cd1451212e

hgweb: remove wsgirequest.read() This was just a proxy to self.inp.read(). This method serves little value. Let's nuke it. Callers in the wire protocol server have been updated accordingly. Differential Revision: https://phab.mercurial-scm.org/D2748
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 08 Mar 2018 17:57:07 -0800
parents e85574176467
children e3f809e0fe8e
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Sat Mar 10 10:46:08 2018 -0800
+++ b/mercurial/hgweb/request.py	Thu Mar 08 17:57:07 2018 -0800
@@ -249,9 +249,6 @@
     def __iter__(self):
         return iter([])
 
-    def read(self, count=-1):
-        return self.inp.read(count)
-
     def drain(self):
         '''need to read all data from request, httplib is half-duplex'''
         length = int(self.env.get('CONTENT_LENGTH') or 0)