From 3c736207a37840109f16f004c343c77b5ee389b6 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 9 Jul 2013 11:55:45 -0400 Subject: [PATCH] Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3. --- django/core/cache/backends/memcached.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/cache/backends/memcached.py b/django/core/cache/backends/memcached.py index 64d1c41dc5..19e8b02f74 100644 --- a/django/core/cache/backends/memcached.py +++ b/django/core/cache/backends/memcached.py @@ -86,7 +86,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: _ = {}