diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-10 09:35:56 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-10 09:35:56 -0400 |
| commit | cec11a3336c730e6dc2f1966fee749cc830e97c0 (patch) | |
| tree | 014c34809c0d39ca63c711e6168d297b9de013b3 /django/middleware/cache.py | |
| parent | ff9e8eccf89fc1dce441736c39dcb6e218ca8940 (diff) | |
Used "is" for comparisons with None.
Diffstat (limited to 'django/middleware/cache.py')
| -rw-r--r-- | django/middleware/cache.py | 2 |
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. |
