summaryrefslogtreecommitdiff
path: root/django/middleware/cache.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-30 12:11:05 -0700
commit778ce245dd466bce1b19f89e52cf9ed8f1b46513 (patch)
tree2de2ad5574c99a5918eb35d9bbb6d7c4fdd86ed7 /django/middleware/cache.py
parent92dbf342868e68dfe60569c60dd5aa5925194221 (diff)
Corrected many style guide violations that the newest version of flake8 catches
Diffstat (limited to 'django/middleware/cache.py')
-rw-r--r--django/middleware/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/cache.py b/django/middleware/cache.py
index 6faebcd3f3..2db82dd4b5 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -118,7 +118,7 @@ class FetchFromCacheMiddleware(object):
Checks whether the page is already cached and returns the cached
version if available.
"""
- if not request.method in ('GET', 'HEAD'):
+ if request.method not in ('GET', 'HEAD'):
request._cache_update_cache = False
return None # Don't bother checking the cache.