mirror of https://github.com/scrapy/scrapy.git
Use built-in range()
This commit is contained in:
parent
f7e4081414
commit
70a69d2199
|
|
@ -56,7 +56,7 @@ class Command(ScrapyCommand):
|
|||
# by default, let the framework handle redirects,
|
||||
# i.e. command handles all codes expect 3xx
|
||||
if not opts.no_redirect:
|
||||
request.meta['handle_httpstatus_list'] = SequenceExclude(six.moves.range(300, 400))
|
||||
request.meta['handle_httpstatus_list'] = SequenceExclude(range(300, 400))
|
||||
else:
|
||||
request.meta['handle_httpstatus_all'] = True
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ from __future__ import print_function
|
|||
|
||||
import os
|
||||
import signal
|
||||
from six.moves import range
|
||||
import warnings
|
||||
|
||||
from twisted.internet import reactor, threads, defer
|
||||
|
|
|
|||
Loading…
Reference in New Issue