comparison MoinMoin/request/request_wsgi.py @ 2938:bdd5df911941

remove request.reset_output
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 30 Oct 2007 22:39:42 +0100
parents b902f2397c68
children 806cf4814612
comparison
equal deleted inserted replaced
2937:3fcf13189a45 2938:bdd5df911941
43 return self.stdin.read(n) 43 return self.stdin.read(n)
44 44
45 def write(self, *data): 45 def write(self, *data):
46 self.stdout.write(self.encode(data)) 46 self.stdout.write(self.encode(data))
47 47
48 def reset_output(self):
49 self.stdout = StringIO.StringIO()
50
51 def _emit_http_headers(self, headers): 48 def _emit_http_headers(self, headers):
52 """ private method to send out preprocessed list of HTTP headers """ 49 """ private method to send out preprocessed list of HTTP headers """
53 st_header, other_headers = headers[0], headers[1:] 50 st_header, other_headers = headers[0], headers[1:]
54 self.status = st_header.split(':', 1)[1].lstrip() 51 self.status = st_header.split(':', 1)[1].lstrip()
55 for header in other_headers: 52 for header in other_headers: