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:
commit
5d9bac789d
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user