From dc2c9c55fe17099bb6ef110e9a8706480b8c8c55 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 23 Nov 2003 14:09:20 +0000 Subject: [PATCH] Made __iter__ equivalent to iterkeys in IterableMap. --- src/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.py b/src/utils.py index 10c3c36d0..ad63ddcfc 100755 --- a/src/utils.py +++ b/src/utils.py @@ -460,6 +460,7 @@ class IterableMap(object): def iterkeys(self): for (key, _) in self.iteritems(): yield key + __iter__ = iterkeys def itervalues(self): for (_, value) in self.iteritems():