Skip to content

Commit 33dfac5

Browse files
author
cclauss
authored
xrange() --> range() for Python 3
Either this PR or scrapy#2845.
1 parent 17bbd71 commit 33dfac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/qpsclient.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def start_requests(self):
4141

4242
slots = int(self.slots)
4343
if slots > 1:
44-
urls = [url.replace('localhost', '127.0.0.%d' % (x + 1)) for x in xrange(slots)]
44+
urls = [url.replace('localhost', '127.0.0.%d' % (x + 1)) for x in range(slots)]
4545
else:
4646
urls = [url]
4747

0 commit comments

Comments
 (0)