diff options
author | Guido van Rossum <guido@python.org> | 1999-11-17 15:00:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-11-17 15:00:14 (GMT) |
commit | dbd5c3e63b639484709f02be311512048f7946e6 (patch) | |
tree | 8ea26ba706be9fe3a63ed568895e651ea2d299e6 /Tools/webchecker | |
parent | d7b147b040140b0c901c15c795ea1172b3c2a546 (diff) | |
download | cpython-dbd5c3e63b639484709f02be311512048f7946e6.zip cpython-dbd5c3e63b639484709f02be311512048f7946e6.tar.gz cpython-dbd5c3e63b639484709f02be311512048f7946e6.tar.bz2 |
Samuel L. Bayer:
- forced new done origins to set errors if they're in self.bad (fixes
bug where only the first of a number of errorful references to a
link is reported under some circumstances)
- suppressed adding duplicates to self.todo list (cleans up printout
in wcgui details)
Diffstat (limited to 'Tools/webchecker')
-rwxr-xr-x | Tools/webchecker/webchecker.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py index 3529338..cbb9f08 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -364,10 +364,15 @@ class Checker: def newdonelink(self, url, origin): self.done[url].append(origin) self.note(3, " Done link %s", url) + if self.bad.has_key(url): + source, rawlink = origin + triple = url, rawlink, self.bad[url] + self.seterror(source, triple) def newtodolink(self, url, origin): if self.todo.has_key(url): - self.todo[url].append(origin) + if origin not in self.todo[url]: + self.todo[url].append(origin) self.note(3, " Seen todo link %s", url) else: self.todo[url] = [origin] |