mirror of https://github.com/scrapy/scrapy.git
replaced use of depricated module scrapy.settings with the method get_project_settings()
This commit is contained in:
parent
d0a81d369f
commit
1b4d14c8f6
|
|
@ -19,6 +19,7 @@ from scrapy.utils.ftp import ftp_makedirs_cwd
|
|||
from scrapy.exceptions import NotConfigured
|
||||
from scrapy.utils.misc import load_object
|
||||
from scrapy.utils.python import get_func_args
|
||||
from scrapy.utils.project import get_project_settings
|
||||
|
||||
|
||||
class IFeedStorage(Interface):
|
||||
|
|
@ -81,7 +82,7 @@ class FileFeedStorage(object):
|
|||
class S3FeedStorage(BlockingFeedStorage):
|
||||
|
||||
def __init__(self, uri):
|
||||
from scrapy.conf import settings
|
||||
settings = get_project_settings()
|
||||
try:
|
||||
import boto
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Reference in New Issue