summaryrefslogtreecommitdiff
path: root/wsgitools/digest.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/digest.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/digest.py')
-rw-r--r--wsgitools/digest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wsgitools/digest.py b/wsgitools/digest.py
index 085047f..5ed05f8 100644
--- a/wsgitools/digest.py
+++ b/wsgitools/digest.py
@@ -133,7 +133,7 @@ class StaleNonce(AuthenticationRequired):
pass
__all__.append("AbstractTokenGenerator")
-class AbstractTokenGenerator:
+class AbstractTokenGenerator(object):
"""Interface class for generating authentication tokens for
L{AuthDigestMiddleware}.
@@ -281,7 +281,7 @@ class UpdatingHtdigestTokenGenerator(HtdigestTokenGenerator):
return HtdigestTokenGenerator.__call__(self, user, algo)
__all__.append("NonceStoreBase")
-class NonceStoreBase:
+class NonceStoreBase(object):
"""Nonce storage interface."""
def __init__(self):
pass
@@ -497,7 +497,7 @@ class MemoryNonceStore(NonceStoreBase):
return True
__all__.append("LazyDBAPI2Opener")
-class LazyDBAPI2Opener:
+class LazyDBAPI2Opener(object):
"""
Connects to database on first request. Otherwise it behaves like a dbapi2
connection. This may be usefull in combination with L{scgi.forkpool},