mirror of https://github.com/scrapy/scrapy.git
Remove single-use variable
This commit is contained in:
parent
91a78eef3e
commit
1785095707
|
|
@ -426,12 +426,11 @@ class ScrapyAgent(object):
|
|||
return d
|
||||
|
||||
def _cb_bodydone(self, result, request, url):
|
||||
status = int(result["txresponse"].code)
|
||||
headers = Headers(result["txresponse"].headers.getAllRawHeaders())
|
||||
respcls = responsetypes.from_args(headers=headers, url=url, body=result["body"])
|
||||
return respcls(
|
||||
url=url,
|
||||
status=status,
|
||||
status=int(result["txresponse"].code),
|
||||
headers=headers,
|
||||
body=result["body"],
|
||||
flags=result["flags"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue