X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fresp.py;fp=wrw%2Fresp.py;h=7fae787f81a92c0f4447c81be0ffcdcc042c2265;hp=fbb056f7fe35a7de8a138312862df1c44822a966;hb=9bc70dab473c7057a20d182ce8566ad0a70a7c5d;hpb=d0034deebc5dc1fc5a54d1e99fe917f9ffbe7d69 diff --git a/wrw/resp.py b/wrw/resp.py index fbb056f..7fae787 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -45,7 +45,7 @@ class message(dispatch.restart): return skelfor(req).message(req, self.message, *self.detail) class httperror(usererror): - def __init__(self, status, message = None, detail = None): + def __init__(self, status, message=None, detail=None): if message is None: message = proto.statusinfo[status][0] if detail is None: @@ -66,7 +66,7 @@ class redirect(dispatch.restart): "script": proto.scripturl, "site": proto.siteurl} - def __init__(self, url, status = 303, base = "url"): + def __init__(self, url, status=303, base="url"): super(redirect, self).__init__() self.url = url self.status = status