diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2023-05-08 11:23:22 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2023-05-08 11:32:25 -0500 |
commit | 7a0aa6de6bb9d912554bac6cafef2d2ff7c757b6 (patch) | |
tree | 70b96898114b73698dc3cdc4639f215acd07fce1 /requests_cache/models | |
parent | 83f7bc77e4daeab70e19e29a1ed1ba4bcabff9e1 (diff) | |
download | requests-cache-7a0aa6de6bb9d912554bac6cafef2d2ff7c757b6.tar.gz |
Enable bugbear extension and fix warnings
Diffstat (limited to 'requests_cache/models')
-rw-r--r-- | requests_cache/models/raw_response.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requests_cache/models/raw_response.py b/requests_cache/models/raw_response.py index f95afab..ea51eb5 100644 --- a/requests_cache/models/raw_response.py +++ b/requests_cache/models/raw_response.py @@ -57,7 +57,7 @@ class CachedHTTPResponse(RichMixin, HTTPResponse): body = raw.read(decode_content=False) kwargs['body'] = body raw._fp = BytesIO(body) - response.content # This property reads, decodes, and stores response content + _ = response.content # This property reads, decodes, and stores response content # After reading, reset file pointer on original raw response raw._fp = BytesIO(body) |