summaryrefslogtreecommitdiff
path: root/django/middleware/cache.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
committerTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
commitcec11a3336c730e6dc2f1966fee749cc830e97c0 (patch)
tree014c34809c0d39ca63c711e6168d297b9de013b3 /django/middleware/cache.py
parentff9e8eccf89fc1dce441736c39dcb6e218ca8940 (diff)
Used "is" for comparisons with None.
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 55b61358ea..dbd5b80fb2 100644
--- a/django/middleware/cache.py
+++ b/django/middleware/cache.py
@@ -96,7 +96,7 @@ class UpdateCacheMiddleware(object):
# Control" header before reverting to using the default cache_timeout
# length.
timeout = get_max_age(response)
- if timeout == None:
+ if timeout is None:
timeout = self.cache_timeout
elif timeout == 0:
# max-age was set to 0, don't bother caching.