diff options
Diffstat (limited to 'django/core/cache')
| -rw-r--r-- | django/core/cache/backends/base.py | 2 | ||||
| -rw-r--r-- | django/core/cache/backends/memcached.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/cache/backends/base.py b/django/core/cache/backends/base.py index 26113aaa31..0ffd47bc2a 100644 --- a/django/core/cache/backends/base.py +++ b/django/core/cache/backends/base.py @@ -74,7 +74,7 @@ class BaseCache(object): self.key_prefix = params.get('KEY_PREFIX', '') self.version = params.get('VERSION', 1) - self.key_func = get_key_func(params.get('KEY_FUNCTION', None)) + self.key_func = get_key_func(params.get('KEY_FUNCTION')) def get_backend_timeout(self, timeout=DEFAULT_TIMEOUT): """ diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index af68885641..fdd12a1e16 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -24,7 +24,7 @@ class BaseMemcachedCache(BaseCache): self.LibraryValueNotFoundException = value_not_found_exception self._lib = library - self._options = params.get('OPTIONS', None) + self._options = params.get('OPTIONS') @property def _cache(self): |
