diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 2c3f1988472..b5c56d83ac1 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -75,7 +75,7 @@ class BaseMemcachedCache(BaseCache): self._cache.delete(key) def get_many(self, keys, version=None): - new_keys = map(lambda x: self.make_key(x, version=version), keys) + new_keys = [self.make_key(x, version=version) for x in keys] ret = self._cache.get_multi(new_keys) if ret: _ = {}