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.
This commit is contained in:
Guido van Rossum 1998-08-06 21:31:13 +00:00
parent 399fea89cb
commit a42c1ee21d
1 changed files with 9 additions and 0 deletions

View File

@ -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: