mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #13827 -- Cleaned up a few unnecessary function calls.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
2
django/core/cache/__init__.py
vendored
2
django/core/cache/__init__.py
vendored
@@ -63,7 +63,7 @@ def get_cache(backend_uri):
|
||||
else:
|
||||
name = scheme
|
||||
module = importlib.import_module(name)
|
||||
return getattr(module, 'CacheClass')(host, params)
|
||||
return module.CacheClass(host, params)
|
||||
|
||||
cache = get_cache(settings.CACHE_BACKEND)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user