remove is_error

This commit is contained in:
Kenneth Reitz
2012-01-21 01:31:23 -05:00
parent f5a2b75924
commit 47aba0cc20
+1 -4
View File
@@ -144,7 +144,7 @@ class Request(object):
return '<Request [%s]>' % (self.method)
def _build_response(self, resp, is_error=False):
def _build_response(self, resp):
"""Build internal :class:`Response <Response>` object
from given response.
"""
@@ -184,9 +184,6 @@ class Request(object):
# Save original response for later.
response.raw = resp
if is_error:
response.error = resp
response.url = self.full_url.decode('utf-8')
return response