From 9f51448160f94fd3d472c941c82e8459bbe6f220 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 22 Jun 2014 02:02:43 +0200 Subject: [PATCH] Use xrange where applicable (faster) --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 0299fec..b8e0544 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -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()