From d13a9e44ded4e93570c6ba42ec84e45ddca2505b Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 11 Dec 2017 12:08:45 +0000 Subject: Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking. --- django/core/cache/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'django/core/cache') diff --git a/django/core/cache/__init__.py b/django/core/cache/__init__.py index 7aaa057229..349ea86480 100644 --- a/django/core/cache/__init__.py +++ b/django/core/cache/__init__.py @@ -44,8 +44,7 @@ def _create_cache(backend, **kwargs): location = kwargs.pop('LOCATION', '') params = kwargs else: - params = conf.copy() - params.update(kwargs) + params = {**conf, **kwargs} backend = params.pop('BACKEND') location = params.pop('LOCATION', '') backend_cls = import_string(backend) -- cgit v1.3