From 2c8a9f0ed0d8c90ea09749618cbf351b28055b90 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Sun, 2 Jun 2019 13:51:32 +0200 Subject: [PATCH] Whitespace fixes --- wani.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wani.py b/wani.py index 2447516..5f10d13 100644 --- a/wani.py +++ b/wani.py @@ -231,6 +231,7 @@ class WordFormMsdCR(WordFormAnyCR): if 'msd' not in self.data: return True selectors = self.data['msd'] + for key, value in selectors.items(): t = word.msd[0] v = TAGSET[t].index(key.lower()) @@ -256,6 +257,7 @@ class WordFormMsdCR(WordFormAnyCR): WordLemma = namedtuple('WordLemmaOnly', 'msd most_frequent_text lemma text') backup_word = WordLemma(msd=msd, most_frequent_text=lambda *x: None, lemma=None, text=None) self.words.append(backup_word) + return super()._render() class WordFormAgreementCR(WordFormMsdCR): @@ -267,7 +269,6 @@ class WordFormAgreementCR(WordFormMsdCR): return self.data['other'] def match(self, word_msd): - existing = [(w.msd, w.text) for w in self.words] for candidate_msd, candidate_text in self.word_renderer.available_words(self.lemma, existing): @@ -324,7 +325,6 @@ class ComponentRendition: self.more = {} self.representation_factory = ComponentRepresentation - def add_feature(self, feature): if 'rendition' in feature: if feature['rendition'] == "lemma":