summaryrefslogtreecommitdiff
path: root/django/utils/cache.py
diff options
context:
space:
mode:
authorRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
committerRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
commitdcfc8fa9721955dc4fcfb6e5e506be12f74c5b85 (patch)
treedb0ff9bc296501a9f8eb5f7b44e3b49652103992 /django/utils/cache.py
parentb44d42be6d05e88071844b64c6519223cdd2fa80 (diff)
Correct flake8 violation E261
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r--django/utils/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py
index f74056cafa..0d664afdf4 100644
--- a/django/utils/cache.py
+++ b/django/utils/cache.py
@@ -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)