mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue