Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6eb9d32

Browse files
committed
sort the urls in the todo list
1 parent 62320c9 commit 6eb9d32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Tools/webchecker/webchecker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ def run(self):
297297
print
298298
print "Round %d (%s)" % (self.round, self.status())
299299
print
300-
urls = self.todo.keys()[:self.roundsize]
300+
urls = self.todo.keys()
301+
urls.sort()
302+
del urls[self.roundsize:]
301303
for url in urls:
302304
self.dopage(url)
303305

0 commit comments

Comments
 (0)