replaced use of depricated module scrapy.settings with the method get_project_settings()

This commit is contained in:
Jonas Brunsgaard 2013-03-21 16:09:14 +01:00
parent d0a81d369f
commit 1b4d14c8f6
1 changed files with 2 additions and 1 deletions

View File

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