Mercurial > moin > 1.9
changeset 2938:bdd5df911941
remove request.reset_output
author | Johannes Berg <johannes AT sipsolutions DOT net> |
---|---|
date | Tue, 30 Oct 2007 22:39:42 +0100 |
parents | 3fcf13189a45 |
children | 6259bb49366c |
files | MoinMoin/request/__init__.py MoinMoin/request/request_wsgi.py |
diffstat | 2 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py Tue Oct 30 22:16:29 2007 +0100 +++ b/MoinMoin/request/__init__.py Tue Oct 30 22:39:42 2007 +0100 @@ -778,15 +778,6 @@ else: self.write = self.writestack.pop() - def reset_output(self): - """ restore default output method - destroy output stack - (useful for error messages) - """ - if self.writestack: - self.write = self.writestack[0] - self.writestack = [] - def log(self, msg): """ Log msg to logging framework """ msg = msg.strip()
--- a/MoinMoin/request/request_wsgi.py Tue Oct 30 22:16:29 2007 +0100 +++ b/MoinMoin/request/request_wsgi.py Tue Oct 30 22:39:42 2007 +0100 @@ -45,9 +45,6 @@ def write(self, *data): self.stdout.write(self.encode(data)) - def reset_output(self): - self.stdout = StringIO.StringIO() - def _emit_http_headers(self, headers): """ private method to send out preprocessed list of HTTP headers """ st_header, other_headers = headers[0], headers[1:]