removed deprecated code

This commit is contained in:
Pablo Hoffman 2011-06-21 18:06:04 -03:00
parent d8775a7575
commit d197895d8f
1 changed files with 1 additions and 2 deletions

View File

@ -81,8 +81,7 @@ class FilesystemCacheStorage(object):
body = f.read()
with open(join(rpath, 'response_headers'), 'rb') as f:
rawheaders = f.read()
# We failback to metadata['url'] to support old generated caches. TODO: remove for Scrapy 0.11
url = metadata.get('response_url') or metadata['url']
url = metadata.get('response_url')
status = metadata['status']
headers = Headers(headers_raw_to_dict(rawheaders))
respcls = responsetypes.from_args(headers=headers, url=url)