From c7d175ab56f9fc7a020d39d7ec2f8f7f0c6ec216 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 28 Mar 2008 18:09:44 +0100 Subject: fixed non-fatal bugs --- wsgitools/filters.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wsgitools/filters.py') diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 509ffde..efba982 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -199,6 +199,7 @@ class RequestLogWSGIFilter(BaseWSGIFilter): """ @type log: file-like """ + BaseWSGIFilter.__init__(self) assert hasattr(log, "write") self.log = log self.time = time.strftime("%d/%b/%Y:%T %z") @@ -268,6 +269,7 @@ class TimerWSGIFilter(BaseWSGIFilter): """ @type pattern: str """ + BaseWSGIFilter.__init__(self) self.pattern = pattern self.start = time.time() def filter_data(self, data): @@ -292,6 +294,7 @@ class EncodeWSGIFilter(BaseWSGIFilter): """ @type charset: str """ + BaseWSGIFilter.__init__(self) self.charset = charset def filter_data(self, data): """BaseWSGIFilter interface @@ -313,6 +316,7 @@ __all__.append("GzipWSGIFilter") class GzipWSGIFilter(BaseWSGIFilter): """Compresses content using gzip.""" def __init__(self): + BaseWSGIFilter.__init__(self) self.compress = False self.sio = None self.gzip = None -- cgit v1.2.3