1
0
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:
Alex Gaynor
2014-03-30 12:11:05 -07:00
parent 92dbf34286
commit 778ce245dd
39 changed files with 55 additions and 54 deletions

View File

@@ -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.