mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
python3: Materialize dict.keys() into a list
This commit is contained in:
parent
d60851f27d
commit
5e96c86036
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ class ViewportStore(LineNumberedKeyedStoreMixin, NoNoneStore):
|
|||
class LineStore(NoNoneStore):
|
||||
|
||||
def __delitem__(self, number):
|
||||
for cls, i in self.store.keys():
|
||||
for cls, i in list(self.store.keys()):
|
||||
if i == number:
|
||||
del self.store[(cls, i)]
|
||||
|
||||
|
@ -181,7 +181,7 @@ class LineStore(NoNoneStore):
|
|||
if i == position2
|
||||
}
|
||||
|
||||
for cls, i in self.store.keys():
|
||||
for cls, i in list(self.store.keys()):
|
||||
if i == position1 or i == position2:
|
||||
del self.store[(cls, i)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue