fixing error TypeError: 'dict_keys' object is not subscriptable
This commit is contained in:
parent
b96498a9b4
commit
4fec0f68ff
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class JsonStore(object):
|
|||
return self.data.keys()
|
||||
|
||||
def remove_all(self, prefix):
|
||||
for key in self.data.keys()[:]:
|
||||
for key in tuple(self.data.keys()):
|
||||
if not key.startswith(prefix):
|
||||
continue
|
||||
del self.data[key]
|
||||
|
|
Loading…
Add table
Reference in a new issue