From 6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Jun 1998 12:33:02 +0000 Subject: sort the urls in the todo list --- Tools/webchecker/webchecker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v0.12