1
0
mirror of https://github.com/django/django.git synced 2025-01-10 18:36:05 +00:00

Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3.

This commit is contained in:
Tim Graham 2013-07-09 11:55:45 -04:00
parent 57f190ed3b
commit 3c736207a3

View File

@ -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:
_ = {}