summaryrefslogtreecommitdiff
path: root/django/utils/cache.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-09-14 03:20:29 +0200
committerTim Graham <timograham@gmail.com>2017-09-13 21:20:29 -0400
commit0ec0e5029ca5c499eac93787c3073c3e716b5951 (patch)
tree26995b1c9679736cd17132b3478d5dfbf2185cb0 /django/utils/cache.py
parentee4043f7355f077583ca4c1749db7d5211f0855e (diff)
Removed unnecessary parens in various code.
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r--django/utils/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py
index e8576b539f..b1abbf0648 100644
--- a/django/utils/cache.py
+++ b/django/utils/cache.py
@@ -153,7 +153,7 @@ def get_conditional_response(request, etag=None, last_modified=None, response=No
if_modified_since = parse_http_date_safe(if_modified_since)
# Step 1 of section 6 of RFC 7232: Test the If-Match precondition.
- if (if_match_etags and not _if_match_passes(etag, if_match_etags)):
+ if if_match_etags and not _if_match_passes(etag, if_match_etags):
return _precondition_failed(request)
# Step 2: Test the If-Unmodified-Since precondition.
@@ -162,7 +162,7 @@ def get_conditional_response(request, etag=None, last_modified=None, response=No
return _precondition_failed(request)
# Step 3: Test the If-None-Match precondition.
- if (if_none_match_etags and not _if_none_match_passes(etag, if_none_match_etags)):
+ if if_none_match_etags and not _if_none_match_passes(etag, if_none_match_etags):
if request.method in ('GET', 'HEAD'):
return _not_modified(request, response)
else: