summaryrefslogtreecommitdiff
path: root/wsgitools/adapters.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-01-06 18:38:58 +0100
committerHelmut Grohne <helmut@subdivi.de>2014-01-06 18:38:58 +0100
commit42f5ccf09799d3e475eb996b023a0daabae49cdb (patch)
tree91f7407adf98014a5f5652a94ba4e1f16af3e8d2 /wsgitools/adapters.py
parented6d6c8f06404489ba2301955c8e6f82f8f4f454 (diff)
downloadwsgitools-42f5ccf09799d3e475eb996b023a0daabae49cdb.tar.gz
switch to new-style classes entirely
There is no reason to use old-style classes beyond laziness.
Diffstat (limited to 'wsgitools/adapters.py')
-rw-r--r--wsgitools/adapters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsgitools/adapters.py b/wsgitools/adapters.py
index 6c6bbca..2c7615a 100644
--- a/wsgitools/adapters.py
+++ b/wsgitools/adapters.py
@@ -16,7 +16,7 @@ except NameError:
return it.next()
__all__.append("WSGI2to1Adapter")
-class WSGI2to1Adapter:
+class WSGI2to1Adapter(object):
"""Adapts an application with an interface that might somewhen be known as
WSGI 2.0 to the WSGI 1.0 interface."""
def __init__(self, app):
@@ -34,7 +34,7 @@ class WSGI2to1Adapter:
return iterable
__all__.append("WSGI1to2Adapter")
-class WSGI1to2Adapter:
+class WSGI1to2Adapter(object):
"""Adapts a WSGI 1.0 application to something that might somewhen be the
WSGI 2.0 interface."""
def __init__(self, app):