Commits

Mike Bayer committed 03a5f9b

- Fixed bug where the :meth:`.Region.get_multi` method wasn't calling
the backend correctly in Py3K (e.g. was passing a destructive ``map()``
object) which would cause this method to fail on the memcached backend.

Comments (0)

Files changed (2)

docs/build/changelog.rst

     :version: 0.5.3
 
     .. change::
+        :tags: bug, py3k
+
+      Fixed bug where the :meth:`.Region.get_multi` method wasn't calling
+      the backend correctly in Py3K (e.g. was passing a destructive ``map()``
+      object) which would cause this method to fail on the memcached backend.
+
+    .. change::
         :tags: feature
         :tickets: 55
 

dogpile/cache/region.py

 
         """
         if self.key_mangler:
-            keys = map(lambda key: self.key_mangler(key), keys)
+            keys = list(map(lambda key: self.key_mangler(key), keys))
 
         backend_values = self.backend.get_multi(keys)
 
         """
 
         if self.key_mangler:
-            keys = map(lambda key: self.key_mangler(key), keys)
+            keys = list(map(lambda key: self.key_mangler(key), keys))
 
         self.backend.delete_multi(keys)