mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-21 05:53:15 +00:00
parent
17bbd71433
commit
33dfac5018
@ -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