diff options
author | Tim Graham <timograham@gmail.com> | 2013-08-29 12:09:35 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2013-08-29 12:11:03 -0400 |
commit | c7d0ff0cad24dbf444f2e4b534377c3352c7aa98 (patch) | |
tree | 7bd912d817fbdde2126e7cd01141be1663312de8 /django/utils/cache.py | |
parent | f19a3669b87641d7882491c3590d3c1c79756197 (diff) | |
download | django-c7d0ff0cad24dbf444f2e4b534377c3352c7aa98.tar.gz |
Fixed #20989 -- Removed explicit list comprehension inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and
helper script.
Diffstat (limited to 'django/utils/cache.py')
-rw-r--r-- | django/utils/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py index 917949d4d3..45f93b9b4c 100644 --- a/django/utils/cache.py +++ b/django/utils/cache.py @@ -58,7 +58,7 @@ def patch_cache_control(response, **kwargs): if response.has_header('Cache-Control'): cc = cc_delim_re.split(response['Cache-Control']) - cc = dict([dictitem(el) for el in cc]) + cc = dict(dictitem(el) for el in cc) else: cc = {} |