Skip to content

Commit 3846b17

Browse files
committed
Code style
1 parent d37e451 commit 3846b17

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

gatenlp/pam/pampac/actions.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,15 @@ def __call__(self, succ, context=None, location=None, annset=None):
482482

483483
anns_to_remove = set()
484484

485-
for i, r in enumerate(succ._results):
485+
for r in succ._results:
486486

487487
# check all matches if the they fit the conditions
488-
for m in r.matches:
489-
ann = m.get("ann")
488+
for match in r.matches:
489+
ann = match.get("ann")
490490
if not ann:
491491
continue
492492
if self.name is not None:
493-
if m.get("name") not in self.name:
493+
if match.get("name") not in self.name:
494494
continue
495495
if self.type is not None:
496496
if ann.type not in self.type:
@@ -508,4 +508,5 @@ def __call__(self, succ, context=None, location=None, annset=None):
508508
if self.annset_name is not None:
509509
annset = context.doc.annset(self.annset_name)
510510

511-
[annset.remove(ann) for ann in anns_to_remove]
511+
for ann in anns_to_remove:
512+
annset.remove(ann)

0 commit comments

Comments
 (0)