plint

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

commit 0f749c773defdbee048b43e98cc55ed2f0495be3
parent 76ed185ffc8d25ba73510bfbc30547aa5c756e4b
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 15 Aug 2019 15:30:42 +0200

sort expected/inferred prons (make output deterministic)

Diffstat:
TODO | 1-
plint/error.py | 2+-
2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/TODO b/TODO @@ -2,7 +2,6 @@ - check again xmllitre - turn should_be_accepted into a test -- sort the "expected"/"inferred" lists to make the output deterministic - expand the corpus of classical poetry: more Racine, more other authors (Boileau, Corneille, Prudhomme, etc.) diff --git a/plint/error.py b/plint/error.py @@ -112,7 +112,7 @@ class ErrorBadRhymeGenre(ErrorBadRhyme): return _("Bad rhyme genre") def fmt(self, l): - result = _(' or ').join(list(l)) + result = _(' or ').join(sorted(list(l))) if result == '': result = "?" return "\"" + result + "\""