mirror of https://github.com/scrapy/scrapy.git
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…
Reference in New Issue