From d197895d8fe54bc42228fba7ae23ca5eac76fce1 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 21 Jun 2011 18:06:04 -0300 Subject: [PATCH] removed deprecated code --- scrapy/contrib/downloadermiddleware/httpcache.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.py index 079189358..c10b121ed 100644 --- a/scrapy/contrib/downloadermiddleware/httpcache.py +++ b/scrapy/contrib/downloadermiddleware/httpcache.py @@ -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)