From 6eb9d32c436af46527ed5874af4f3ce4fe5a6ccb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Jun 1998 12:33:02 +0000 Subject: [PATCH] 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 bf56cece355..285d04494b1 100755 --- a/Tools/webchecker/webchecker.py +++ b/Tools/webchecker/webchecker.py @@ -297,7 +297,9 @@ def run(self): 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)