From 33dfac50185b1940dda89bec3e3480a7e76e9ca7 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 24 Jul 2017 22:06:17 +0200 Subject: [PATCH] xrange() --> range() for Python 3 Either this PR or #2845. --- extras/qpsclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/qpsclient.py b/extras/qpsclient.py index bb83588dd..7554f7eec 100644 --- a/extras/qpsclient.py +++ b/extras/qpsclient.py @@ -41,7 +41,7 @@ class QPSSpider(Spider): slots = int(self.slots) if slots > 1: - urls = [url.replace('localhost', '127.0.0.%d' % (x + 1)) for x in xrange(slots)] + urls = [url.replace('localhost', '127.0.0.%d' % (x + 1)) for x in range(slots)] else: urls = [url]