mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
This commit is contained in:
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user