diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2014-12-06 13:00:09 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-08 07:58:23 -0500 |
| commit | 4468c08d70b5b722f3ebd4872909e56580ec7d68 (patch) | |
| tree | 3da12d757bc9b586df4ba39da20b8793abcae76e /tests/cache | |
| parent | b327a614eb7d885441c6a2575e10b70ac1352aae (diff) | |
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py index bdbde46336..9762620afc 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -219,7 +219,7 @@ def caches_setting_for_tests(base=None, **params): # This results in the following search order: # params -> _caches_setting_base -> base base = base or {} - setting = dict((k, base.copy()) for k in _caches_setting_base.keys()) + setting = {k: base.copy() for k in _caches_setting_base.keys()} for key, cache_params in setting.items(): cache_params.update(_caches_setting_base[key]) cache_params.update(params) |
