1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Correct flake8 violation E261

This commit is contained in:
Ray Ashman Jr
2013-11-02 15:27:47 -04:00
parent b44d42be6d
commit dcfc8fa972
18 changed files with 59 additions and 59 deletions

View File

@@ -112,7 +112,7 @@ def patch_response_headers(response, cache_timeout=None):
if cache_timeout is None:
cache_timeout = settings.CACHE_MIDDLEWARE_SECONDS
if cache_timeout < 0:
cache_timeout = 0 # Can't have max-age negative
cache_timeout = 0 # Can't have max-age negative
if settings.USE_ETAGS and not response.has_header('ETag'):
if hasattr(response, 'render') and callable(response.render):
response.add_post_render_callback(_set_response_etag)