From a42c1ee21df701d434ee0857ed5ce1adba5e1acf Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 6 Aug 1998 21:31:13 +0000 Subject: [PATCH] Added note() message to Page class -- this was used but didn't exist. (The alternative would be to call self.checker.note() but since self.checker might be None that's not quite right. --- Tools/webchecker/webchecker.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 13ea0b637c3..93078bb94bc 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -546,6 +546,15 @@ class Page: self.maxpage = maxpage self.checker = checker + def note(self, level, msg, *args): + if self.checker: + apply(self.checker.note, (level, msg) + args) + else: + if self.verbose >= level: + if args: + msg = msg%args + print msg + def getlinkinfos(self): size = len(self.text) if size > self.maxpage: