mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 05:04:25 +00:00
fix import of deprecated http handler for S3 handler
This commit is contained in:
parent
22da89b748
commit
e06836ff48
@ -1,7 +1,7 @@
|
||||
from scrapy import optional_features
|
||||
from scrapy.exceptions import NotConfigured
|
||||
from scrapy.utils.httpobj import urlparse_cached
|
||||
from .http import HttpDownloadHandler
|
||||
from .http import HTTPDownloadHandler
|
||||
|
||||
try:
|
||||
from boto.s3.connection import S3Connection
|
||||
@ -30,7 +30,7 @@ else:
|
||||
class S3DownloadHandler(object):
|
||||
|
||||
def __init__(self, settings, aws_access_key_id=None, aws_secret_access_key=None, \
|
||||
httpdownloadhandler=HttpDownloadHandler):
|
||||
httpdownloadhandler=HTTPDownloadHandler):
|
||||
if 'boto' not in optional_features:
|
||||
raise NotConfigured("missing boto library")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user