plint

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

commit 4586a66d5f4303088fbb7b32d343f0d39c5021fb
parent aa6360e7fefee67b45c98b201e37831d4a53032b
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 14 Mar 2012 02:39:15 +0100

avoid conflict with print

Diffstat:
rhyme.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rhyme.py b/rhyme.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 -u +#encoding: utf8 import re import sys @@ -70,7 +71,7 @@ class Rhyme: def satisfied(self): return self.eye or len(self.phon) > 0 - def print(self): + def pprint(self): pprint(self.phon) def suffix(x, y): @@ -133,7 +134,7 @@ if __name__ == '__main__': rhyme = Rhyme(line[0], constraint) for x in line[1:]: rhyme.feed(x) - rhyme.print() + rhyme.pprint() if not rhyme.satisfied(): print("No.") break