From 8340394bcc2c1618da69e1b8b2f1a9ead20601c2 Mon Sep 17 00:00:00 2001 From: Akshay Sharma <42249933+akshaysharmajs@users.noreply.github.com> Date: Tue, 21 Jun 2022 02:45:39 -0400 Subject: [PATCH] removed prints --- scrapy/extensions/httpcache.py | 1 - scrapy/responsetypes.py | 1 - tests/test_downloadermiddleware_httpcache.py | 1 - 3 files changed, 3 deletions(-) diff --git a/scrapy/extensions/httpcache.py b/scrapy/extensions/httpcache.py index 7733ffa5c..843e14812 100644 --- a/scrapy/extensions/httpcache.py +++ b/scrapy/extensions/httpcache.py @@ -241,7 +241,6 @@ class DbmCacheStorage: headers = Headers(data['headers']) body = data['body'] respcls = responsetypes.from_args(headers=headers, url=url, body=body) - print(respcls) response = respcls(url=url, headers=headers, status=status, body=body) return response diff --git a/scrapy/responsetypes.py b/scrapy/responsetypes.py index 95252498b..4140d9de0 100644 --- a/scrapy/responsetypes.py +++ b/scrapy/responsetypes.py @@ -235,7 +235,6 @@ class ResponseTypes: http_origin = not url or urlparse(url).scheme in ("http", "https") content_types = (self._guess_content_type(body=body, headers=headers, url=url, filename=filename),) content_types = None if content_types == (None,) else content_types - print(content_types) mime_type = extract_mime(body, content_types=content_types, http_origin=http_origin) return self._guess_response_type(mime_type) diff --git a/tests/test_downloadermiddleware_httpcache.py b/tests/test_downloadermiddleware_httpcache.py index c84c2bdeb..7945d2a61 100644 --- a/tests/test_downloadermiddleware_httpcache.py +++ b/tests/test_downloadermiddleware_httpcache.py @@ -134,7 +134,6 @@ class DefaultStorageTest(_BaseTest): ) storage.store_response(self.spider, self.request, response) cached_response = storage.retrieve_response(self.spider, self.request) - print(cached_response) self.assertIsInstance(cached_response, HtmlResponse) self.assertEqualResponse(response, cached_response)