mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
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
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue