Commit abfc17cf authored by Tiago Peixoto's avatar Tiago Peixoto

Fix bug in PropertyDict.items()

parent ebe35be5
......@@ -1508,9 +1508,9 @@ class PropertyDict(object):
return self.keys()
def iterkeys(self):
for k in self.properties.iterkeys():
for k in self.properties.keys():
if k[0] == self.t:
yield k[0]
yield k[1]
def items(self):
for k, v in self.properties.items():
......@@ -1527,7 +1527,7 @@ class PropertyDict(object):
yield k[1], v
def itervalues(self):
for k, v in self.properties.iteritems():
for k, v in self.properties.items():
if k[0] == self.t:
yield v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment