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/digest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wsgitools/digest.py') 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}, -- cgit v1.2.3