mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Corrected many style guide violations that the newest version of flake8 catches
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user