diff options
| author | tom christie tom@tomchristie.com | 2011-01-27 19:24:58 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-01-27 19:24:58 +0000 |
| commit | e227c38b330988d71087759d13303215561808c6 (patch) | |
| tree | 78c008e0b977bdb025f9d2d3d340124f66c253b0 /flywheel/response.py | |
| parent | d38f7f3ef7ab803a8b9babda8f6be989f378429e (diff) | |
| download | django-rest-framework-e227c38b330988d71087759d13303215561808c6.tar.bz2 | |
Removed is_error in Response
Diffstat (limited to 'flywheel/response.py')
| -rw-r--r-- | flywheel/response.py | 5 |
1 files changed, 2 insertions, 3 deletions
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) |
