From 42f5ccf09799d3e475eb996b023a0daabae49cdb Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 6 Jan 2014 18:38:58 +0100 Subject: switch to new-style classes entirely There is no reason to use old-style classes beyond laziness. --- wsgitools/filters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wsgitools/filters.py') diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 7ae1b69..d691f74 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -24,7 +24,7 @@ except NameError: return it.next() __all__.append("CloseableIterator") -class CloseableIterator: +class CloseableIterator(object): """Concatenating iterator with close attribute.""" def __init__(self, close_function, *iterators): """If close_function is not C{None}, it will be the C{close} attribute @@ -68,7 +68,7 @@ class CloseableList(list): list.__iter__(self)) __all__.append("BaseWSGIFilter") -class BaseWSGIFilter: +class BaseWSGIFilter(object): """Generic WSGI filter class to be used with L{WSGIFilterMiddleware}. For each request a filter object gets created. @@ -147,7 +147,7 @@ class BaseWSGIFilter: pass __all__.append("WSGIFilterMiddleware") -class WSGIFilterMiddleware: +class WSGIFilterMiddleware(object): """This wsgi middleware can be used with specialized L{BaseWSGIFilter}s to modify wsgi requests and/or reponses.""" def __init__(self, app, filterclass): -- cgit v1.2.3