mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Made __iter__ equivalent to iterkeys in IterableMap.
This commit is contained in:
parent
bd15dadf28
commit
dc2c9c55fe
@ -460,6 +460,7 @@ class IterableMap(object):
|
|||||||
def iterkeys(self):
|
def iterkeys(self):
|
||||||
for (key, _) in self.iteritems():
|
for (key, _) in self.iteritems():
|
||||||
yield key
|
yield key
|
||||||
|
__iter__ = iterkeys
|
||||||
|
|
||||||
def itervalues(self):
|
def itervalues(self):
|
||||||
for (_, value) in self.iteritems():
|
for (_, value) in self.iteritems():
|
||||||
|
Loading…
Reference in New Issue
Block a user