Commit 64520e73 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix PropertyDict.clear()

parent 867d13c0
......@@ -1480,11 +1480,11 @@ class PropertyDict(object):
def clear(self):
keys = []
for k in
for k in
if k[0] == self.t:
for k in keys:
del[(self.t, k)]
def __len__(self):
count = 0
......@@ -1513,8 +1513,10 @@ class PropertyDict(object):
def keys(self):
return self.iterkeys()
def values(self):
return self.itervalues()
def __repr__(self):
temp = dict([(k[1], v) for k, v in if k[0] == self.t])
return repr(temp)
Supports Markdown
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