From c3489449893fc6facc58dd06a2ea13091d9096fa Mon Sep 17 00:00:00 2001 From: pjenvey Date: Fri, 5 Jan 2007 03:18:34 +0000 Subject: convert old-style classes to new-style classes --- paste/errordocument.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/errordocument.py') 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. """ -- cgit v1.2.1