Use built-in range()

This commit is contained in:
Paul Tremberth 2016-12-12 22:40:48 +01:00
parent f7e4081414
commit 70a69d2199
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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