diff options
author | Guido van Rossum <guido@python.org> | 1998-08-06 21:31:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-06 21:31:13 (GMT) |
commit | a42c1ee21df701d434ee0857ed5ce1adba5e1acf (patch) | |
tree | 91d0462e681a8fdfc53098afeb116b7b791f33cd | |
parent | 399fea89cb4d16e71571c0f1e7e203a750a1a0aa (diff) | |
download | cpython-a42c1ee21df701d434ee0857ed5ce1adba5e1acf.zip cpython-a42c1ee21df701d434ee0857ed5ce1adba5e1acf.tar.gz cpython-a42c1ee21df701d434ee0857ed5ce1adba5e1acf.tar.bz2 |
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.
-rwxr-xr-x | Tools/webchecker/webchecker.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 13ea0b6..93078bb 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: |