plint

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

commit 0951d1c5ebcafccc63d656615369e0da0c39bcff
parent 3a6dee3769b429a787ba4c01161e5c223c068809
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  8 Dec 2012 17:56:34 +0100

fix bug in option parsing

Diffstat:
template.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/template.py b/template.py @@ -77,9 +77,9 @@ class Template: self.diaeresis = value if value not in ["permissive", "classical"]: raise ValueError - elif key == ["check_end_hemistiche", "verifie_fin_hemistiche"]: + elif key in ["check_end_hemistiche", "verifie_fin_hemistiche"]: self.check_end_hemistiche = str2bool(value) - elif key == ["check_occurrences", "verifie_occurrences"]: + elif key in ["check_occurrences", "verifie_occurrences"]: self.check_occurrences = str2bool(value) else: raise ValueError