Made __iter__ equivalent to iterkeys in IterableMap.

This commit is contained in:
Jeremy Fincher 2003-11-23 14:09:20 +00:00
parent bd15dadf28
commit dc2c9c55fe

View File

@ -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():