plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 2ac6114a2ff59cac9e8fd5e2e85ccddefc51a216
parent e06afbc35e1a197f0f977f12ba4fa09f163dee67
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu,  9 May 2013 01:24:57 +0200

fix ErrorMultipleWordOccurrence

Diffstat:
error.py | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/error.py b/error.py @@ -145,12 +145,9 @@ class ErrorMultipleWordOccurrence: self.word = word self.occurrences = occurrences - def get_id(self): - return self.pattern.myid - def report(self, pattern): return (_("Too many occurrences of word %s for rhyme %s") - % (self.word, self.get_id())) + % (self.word, pattern.myid)) class ErrorIncompleteTemplate: def report(self, pattern):