summaryrefslogtreecommitdiff
path: root/wsgitools/filters.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2008-03-28 18:09:44 +0100
committerHelmut Grohne <helmut@subdivi.de>2008-03-28 18:09:44 +0100
commitc7d175ab56f9fc7a020d39d7ec2f8f7f0c6ec216 (patch)
tree21d67e4655d64fa83cd8c165c213a86fa518588e /wsgitools/filters.py
parentcdf40b62af41540e4c57a2edfa62ea902d5d63d5 (diff)
downloadwsgitools-c7d175ab56f9fc7a020d39d7ec2f8f7f0c6ec216.tar.gz
fixed non-fatal bugs
Diffstat (limited to 'wsgitools/filters.py')
-rw-r--r--wsgitools/filters.py4
1 files changed, 4 insertions, 0 deletions
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