mirror of
https://github.com/django/django.git
synced 2025-08-23 18:29:12 +00:00
[1.5.x] Removed an impossible code path in cache function
Backport of 04a7ea328 from master.
This commit is contained in:
parent
e6bc0c5bab
commit
48a2917d46
2
django/core/cache/__init__.py
vendored
2
django/core/cache/__init__.py
vendored
@ -93,8 +93,6 @@ def parse_backend_conf(backend, **kwargs):
|
|||||||
raise InvalidCacheBackendError("Could not find backend '%s'" % backend)
|
raise InvalidCacheBackendError("Could not find backend '%s'" % backend)
|
||||||
location = kwargs.pop('LOCATION', '')
|
location = kwargs.pop('LOCATION', '')
|
||||||
return backend, location, kwargs
|
return backend, location, kwargs
|
||||||
raise InvalidCacheBackendError(
|
|
||||||
"Couldn't find a cache backend named '%s'" % backend)
|
|
||||||
|
|
||||||
def get_cache(backend, **kwargs):
|
def get_cache(backend, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user