plint

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

commit 6f5a8c57a7f4dfab086245e1cd1695be21dc9918
parent 570d2b8b34d7cb22e7b9f56b1dc31be2cd28bea8
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 15 Jul 2012 14:02:20 +0200

cleanup

Diffstat:
error.py | 5+++--
plint.py | 2+-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/error.py b/error.py @@ -23,13 +23,14 @@ class Error: l.append(s) else: l.append(self.say("error: %s" % (s))) + msg = "Line is: %s" % (self.line) if short: if t != []: - l.append("Line is: %s" % (self.line)) + l.append(msg) for x in t: l.append(x) else: - l.append(self.say("Line is: %s" % (self.line))) + l.append(self.say(msg)) for x in t: l.append(self.say(x)) return '\n'.join(l) diff --git a/plint.py b/plint.py @@ -21,7 +21,7 @@ def run(): if __name__ == '__main__': if len(sys.argv) < 2 or len(sys.argv) > 3: print("Usage: %s TEMPLATE [OCONTEXT]" % sys.argv[0], file=sys.stderr) - print("Check stdin according to template, report errors on stdout", + print("Check stdin according to TEMPLATE, report errors on stdout", file=sys.stderr) sys.exit(1)