1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-21 05:53:15 +00:00

xrange() --> range() for Python 3

Either this PR or #2845.
This commit is contained in:
cclauss 2017-07-24 22:06:17 +02:00 committed by GitHub
parent 17bbd71433
commit 33dfac5018

View File

@ -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]