1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 07:32:41 +00:00

Merge pull request #2849 from cclauss/patch-2

[MRG+1] xrange() --> range() for Python 3
This commit is contained in:
Daniel Graña 2017-07-26 15:59:37 -03:00 committed by GitHub
commit 5d9bac789d

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]