Use xrange where applicable (faster)
parent
f01efb7334
commit
9f51448160
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue