diff options
Diffstat (limited to 'wsgitools/filters.py')
-rw-r--r-- | wsgitools/filters.py | 4 |
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 |