From 2301c9a1f494eca5d09494562812b39349035906 Mon Sep 17 00:00:00 2001 From: Eric Moritz Date: Thu, 4 Sep 2014 15:42:29 -0400 Subject: [PATCH] Fixed a bug with the implementation of Mapping.__iter__ Mapping.__iter__ iterates over the keys not the values. This bugs caused Mapping.items() to malfunction. --- riak/datatypes/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riak/datatypes/map.py b/riak/datatypes/map.py index c296ff38..e9460101 100644 --- a/riak/datatypes/map.py +++ b/riak/datatypes/map.py @@ -33,7 +33,7 @@ def __iter__(self): for key in self.map.value: name, datatype = key if datatype == self.datatype: - yield self.map[key] + yield name def __len__(self): """