equal
deleted
inserted
replaced
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.''' |