diff options
Diffstat (limited to 'Tools/webchecker')
-rwxr-xr-x | Tools/webchecker/wcgui.py | 10 | ||||
-rwxr-xr-x | Tools/webchecker/webchecker.py | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Tools/webchecker/wcgui.py b/Tools/webchecker/wcgui.py index e467d92..96aed0a 100755 --- a/Tools/webchecker/wcgui.py +++ b/Tools/webchecker/wcgui.py @@ -10,17 +10,17 @@ Checkpoints are not (yet??? ever???) supported. User interface: -Enter a root to check in the text entry box. To enter more than one root, +Enter a root to check in the text entry box. To enter more than one root, enter them one at a time and press <Return> for each one. -Command buttons Start, Stop and "Check one" govern the checking process in -the obvious way. Start and "Check one" also enter the root from the text +Command buttons Start, Stop and "Check one" govern the checking process in +the obvious way. Start and "Check one" also enter the root from the text entry box if one is present. There's also a check box (enabled by default) to decide whether actually to follow external links (since this can slow the checking down considerably). Finally there's a Quit button. -A series of checkbuttons determines whether the corresponding output panel -is shown. List panels are also automatically shown or hidden when their +A series of checkbuttons determines whether the corresponding output panel +is shown. List panels are also automatically shown or hidden when their status changes between empty to non-empty. There are six panels: Log -- raw output from the checker (-v, -q affect this) diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 9113c4b..d918a0c 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -297,7 +297,7 @@ class Checker: def message(self, format, *args): if args: format = format%args - print format + print format def __getstate__(self): return (self.roots, self.todo, self.done, self.bad, self.round) @@ -380,7 +380,7 @@ class Checker: # triples is now a (URL, fragment) pair. The value # of the "source" variable comes from the list of # origins, and is a URL, not a pair. - for url, rawlink, msg in triples: + for url, rawlink, msg in triples: if rawlink != self.format_url(url): s = " (%s)" % rawlink else: s = "" self.message(" HREF %s%s\n msg %s", @@ -462,7 +462,7 @@ class Checker: self.todo[url] = [origin] self.note(3, " New todo link %s", self.format_url(url)) - def format_url(self, url): + def format_url(self, url): link, fragment = url if fragment: return link + "#" + fragment else: return link @@ -716,7 +716,7 @@ class Page: t = t[:-1] + ('',) rawlink = urlparse.urlunparse(t) link = urlparse.urljoin(base, rawlink) - infos.append((link, rawlink, fragment)) + infos.append((link, rawlink, fragment)) return infos |