plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit d6231590b0c6e017a7fcc867c27350eb84db5702
parent e147a1b3ffa6c81f50c7580789309f30d19b752d
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 10 Jul 2012 22:23:00 +0200

fix variable capture bug

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

diff --git a/error.py b/error.py @@ -44,11 +44,11 @@ class ErrorBadCharacters(Error): ', '.join(["'" + a + "'" for a in self.characters])), short) class ErrorForbiddenPattern(Error): - def __init__(self, pattern): - self.pattern = pattern + def __init__(self, forbidden): + self.forbidden = forbidden def report(self, short=False): - return Error.report(self, "Illegal ambiguous pattern: %s" % self.pattern, + return Error.report(self, "Illegal ambiguous pattern: %s" % self.forbidden, short) class ErrorHiatus(Error):