summaryrefslogtreecommitdiff
path: root/django/core/cache
diff options
context:
space:
mode:
authorPiotr Jakimiak <pj306228@students.mimuw.edu.pl>2015-05-13 20:51:18 +0200
committerPiotr Jakimiak <pj306228@students.mimuw.edu.pl>2015-05-13 20:51:18 +0200
commit4157c502a5202798d0f73645181cb82aa71d34d9 (patch)
tree78c99c7fd271f6c25a71b2ccf781ab7928396677 /django/core/cache
parentf61c4f490dc4c8ec6ba94ad4f40247db2425fc3e (diff)
Removed unnecessary arguments in .get method calls
Diffstat (limited to 'django/core/cache')
-rw-r--r--django/core/cache/backends/base.py2
-rw-r--r--django/core/cache/backends/memcached.py2
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):