Use xrange where applicable (faster)

This commit is contained in:
pictuga 2014-06-22 02:02:43 +02:00
parent f01efb7334
commit 9f51448160

View File

@ -616,7 +616,7 @@ def Gather(rss, url, cache, options):
queue = Queue.Queue()
for i in range(THREADS):
for i in xrange(THREADS):
t = threading.Thread(target=runner, args=(queue,))
t.daemon = True
t.start()