plint

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

commit 221a32ddba47a385631340111cf3b315d193753f
parent 7ca38ea988ec3f401df1cb6c19a4b6f4d29dfae0
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 10 Jun 2012 20:13:51 +0200

fix previous fix

Diffstat:
error.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/error.py b/error.py @@ -40,7 +40,7 @@ class ErrorBadCharacters(Error): def report(self, short=False): return Error.report(self, "Illegal character: %s" - % ', '.join(["'" + a + "'" for a in self.characters])) + % ', '.join(["'" + a + "'" for a in self.characters]), short) class ErrorForbiddenPattern(Error): def __init__(self): @@ -48,7 +48,7 @@ class ErrorForbiddenPattern(Error): pass def report(self, short=False): - return Error.report(self, "Illegal ambiguous pattern") + return Error.report(self, "Illegal ambiguous pattern", short) class ErrorBadRhyme(Error): def __init__(self, expected, inferred): @@ -186,5 +186,5 @@ class ErrorMultipleWordOccurrence(Error): def report(self, short=False): return Error.report(self, "%d occurrences of word %s for rhyme %s" - % (self.occurrences, self.word, self.get_id())) + % (self.occurrences, self.word, self.get_id()), short)