From e227c38b330988d71087759d13303215561808c6 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Thu, 27 Jan 2011 19:24:58 +0000 Subject: Removed is_error in Response --- flywheel/response.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'flywheel/response.py') diff --git a/flywheel/response.py b/flywheel/response.py index d662ef29..4f23bb0a 100644 --- a/flywheel/response.py +++ b/flywheel/response.py @@ -106,13 +106,12 @@ class NoContent(object): class Response(object): - def __init__(self, status, content=NoContent, headers={}, is_error=False): + def __init__(self, status, content=NoContent, headers={}): self.status = status self.has_content_body = not content is NoContent self.raw_content = content # content prior to filtering self.cleaned_content = content # content after filtering self.headers = headers - self.is_error = is_error @property def status_text(self): @@ -123,4 +122,4 @@ class Response(object): class ResponseException(BaseException): def __init__(self, status, content=NoContent, headers={}): - self.response = Response(status, content=content, headers=headers, is_error=True) + self.response = Response(status, content=content, headers=headers) -- cgit v1.2.3