mercurial/hgweb/request.py
changeset 36856 e85574176467
parent 36854 16292bbda39c
child 36857 d6cd1451212e
equal deleted inserted replaced
36855:0bc771bba220 36856:e85574176467
   304                 self.server_write(thing)
   304                 self.server_write(thing)
   305             except socket.error as inst:
   305             except socket.error as inst:
   306                 if inst[0] != errno.ECONNRESET:
   306                 if inst[0] != errno.ECONNRESET:
   307                     raise
   307                     raise
   308 
   308 
   309     def writelines(self, lines):
       
   310         for line in lines:
       
   311             self.write(line)
       
   312 
       
   313     def flush(self):
   309     def flush(self):
   314         return None
       
   315 
       
   316     def close(self):
       
   317         return None
   310         return None
   318 
   311 
   319 def wsgiapplication(app_maker):
   312 def wsgiapplication(app_maker):
   320     '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
   313     '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
   321     can and should now be used as a WSGI application.'''
   314     can and should now be used as a WSGI application.'''