Scrapy, a fast high-level web crawling & scraping framework for Python.
moved unused scrapy.core.scheduler.store module to scrapy.contrib_exp.history
Pablo Hoffmanc0dcd764249f
diff --git a/scrapy/conf/default_settings.py b/scrapy/conf/default_settings.pyindex 59947f79f..6402c76f5 100644--- a/scrapy/conf/default_settings.py+++ b/scrapy/conf/default_settings.py@@ -126,8 +126,6 @@ MAIL_FROM = 'scrapy@localhost'MEMDEBUG_ENABLED = False # enable memory debuggingMEMDEBUG_NOTIFY = [] # send memory debugging report by mail at engine shutdown-MEMORYSTORE = 'scrapy.core.scheduler.MemoryStore'-MEMUSAGE_ENABLED = 1MEMUSAGE_LIMIT_MB = 0MEMUSAGE_NOTIFY_MAIL = []diff --git a/scrapy/core/scheduler/store.py b/scrapy/contrib_exp/history/memorystore.pysimilarity index 100%rename from scrapy/core/scheduler/store.pyrename to scrapy/contrib_exp/history/memorystore.pydiff --git a/scrapy/contrib_exp/history/middleware.py b/scrapy/contrib_exp/history/middleware.pyindex 4baf3767f..b1771e96b 100644--- a/scrapy/contrib_exp/history/middleware.py+++ b/scrapy/contrib_exp/history/middleware.py@@ -15,8 +15,10 @@ class HistoryMiddleware(object):# How often we should process pages that have not changed (need to include depth)MIN_PROCESS_UNCHANGED_DAYS = 12+ MEMORYSTORE = 'scrapy.contrib_exp.history.memorystore.MemoryStore'+def __init__(self):- historycls = load_object(settings['MEMORYSTORE'])+ historycls = load_object(self.MEMORYSTORE)if not historycls:raise NotConfiguredself.historydata = historycls()diff --git a/scrapy/contrib_exp/history/store.py b/scrapy/contrib_exp/history/sqlstore.pysimilarity index 100%rename from scrapy/contrib_exp/history/store.pyrename to scrapy/contrib_exp/history/sqlstore.pydiff --git a/scrapy/core/scheduler/__init__.py b/scrapy/core/scheduler/__init__.pyindex 51f8ecab5..5f28c6bf3 100644--- a/scrapy/core/scheduler/__init__.py+++ b/scrapy/core/scheduler/__init__.py@@ -1,3 +1,2 @@from scrapy.core.scheduler.schedulers import Scheduler-from scrapy.core.scheduler.store import MemoryStorefrom scrapy.core.scheduler.middleware import SchedulerMiddlewareManager