summaryrefslogtreecommitdiff
path: root/paste/errordocument.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2007-01-05 03:18:34 +0000
committerpjenvey <devnull@localhost>2007-01-05 03:18:34 +0000
commitc3489449893fc6facc58dd06a2ea13091d9096fa (patch)
tree94c8bd85450992880b8796ab592896c56d69e69c /paste/errordocument.py
parentdc929a2a6569b1ec4d30e5ba4f3741c07c47b4ce (diff)
downloadpaste-c3489449893fc6facc58dd06a2ea13091d9096fa.tar.gz
convert old-style classes to new-style classes
Diffstat (limited to 'paste/errordocument.py')
-rw-r--r--paste/errordocument.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/errordocument.py b/paste/errordocument.py
index f776633..90bda8a 100644
--- a/paste/errordocument.py
+++ b/paste/errordocument.py
@@ -83,7 +83,7 @@ class StatusKeeper(object):
#raise Exception(self.url, self.status)
return self.app(environ, keep_status_start_response)
-class StatusBasedForward:
+class StatusBasedForward(object):
"""
Middleware that lets you test a response against a custom mapper object to
programatically determine whether to internally forward to another URL and
@@ -241,7 +241,7 @@ def custom_forward(app, mapper, global_conf=None, **kw):
global_conf = {}
return _StatusBasedRedirect(app, mapper, global_conf, **kw)
-class _StatusBasedRedirect:
+class _StatusBasedRedirect(object):
"""
Deprectated; use StatusBasedForward instead.
"""