mirror of https://github.com/python/cpython.git
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:
parent
399fea89cb
commit
a42c1ee21d
|
@ -546,6 +546,15 @@ def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None):
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue