summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-15 12:33:02 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-15 12:33:02 (GMT)
commit6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb (patch)
tree93bd1db9ab87b44fb828cd7a152c3115e828eaef /Tools
parent62320c9b9b4449feacf73980c19979f0e4abb655 (diff)
downloadcpython-6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb.zip
cpython-6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb.tar.gz
cpython-6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb.tar.bz2
sort the urls in the todo list
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/webchecker/webchecker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/webchecker/webchecker.py b/Tools/webchecker/webchecker.py
index bf56cec..285d044 100755
--- a/Tools/webchecker/webchecker.py
+++ b/Tools/webchecker/webchecker.py
@@ -297,7 +297,9 @@ class Checker:
print
print "Round %d (%s)" % (self.round, self.status())
print
- urls = self.todo.keys()[:self.roundsize]
+ urls = self.todo.keys()
+ urls.sort()
+ del urls[self.roundsize:]
for url in urls:
self.dopage(url)