mirror of https://github.com/scrapy/scrapy.git
Revert "replaced use of depricated module scrapy.settings with the method get_project_settings()"
This reverts commit 1b4d14c8f6.
Calling `get_project_settings()` generates a new independent Settings
object that doesn't contain the overrides passed by command line
arguments, for example.
Proper port would require implementing the from_crawler() class method
and making sure the settings object is passed to all internal objects
(probably breaking some minor backwards compatibility).
This commit is contained in:
parent
8c181d87f6
commit
21c8b89422
|
|
@ -19,7 +19,6 @@ 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):
|
||||
|
|
@ -82,7 +81,7 @@ class FileFeedStorage(object):
|
|||
class S3FeedStorage(BlockingFeedStorage):
|
||||
|
||||
def __init__(self, uri):
|
||||
settings = get_project_settings()
|
||||
from scrapy.conf import settings
|
||||
try:
|
||||
import boto
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Reference in New Issue