Scrapy, a fast high-level web crawling & scraping framework for Python.
Rename scrapy/statscol.py to scrapy/statscollectors.py
Julia Medinab827097c91eb
diff --git a/docs/topics/api.rst b/docs/topics/api.rstindex 89e300b39..7805f63d3 100644--- a/docs/topics/api.rst+++ b/docs/topics/api.rst@@ -65,7 +65,7 @@ how you :ref:`configure the downloader middlewaresFor an introduction on stats collection see :ref:`topics-stats`.- For the API see :class:`~scrapy.statscol.StatsCollector` class.+ For the API see :class:`~scrapy.statscollectors.StatsCollector` class... attribute:: extensions@@ -452,11 +452,11 @@ Stats Collector API===================There are several Stats Collectors available under the-:mod:`scrapy.statscol` module and they all implement the Stats-Collector API defined by the :class:`~scrapy.statscol.StatsCollector`+:mod:`scrapy.statscollectors` module and they all implement the Stats+Collector API defined by the :class:`~scrapy.statscollectors.StatsCollector`class (which they all inherit from).-.. module:: scrapy.statscol+.. module:: scrapy.statscollectors:synopsis: Stats Collectors.. class:: StatsCollectordiff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex f035bc33d..26a6d762d 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -936,7 +936,7 @@ Example::STATS_CLASS------------Default: ``'scrapy.statscol.MemoryStatsCollector'``+Default: ``'scrapy.statscollectors.MemoryStatsCollector'``The class to use for collecting stats, who must implement the:ref:`topics-api-stats`.diff --git a/docs/topics/stats.rst b/docs/topics/stats.rstindex 5560a9446..0837610d0 100644--- a/docs/topics/stats.rst+++ b/docs/topics/stats.rst@@ -75,7 +75,7 @@ available in Scrapy which extend the basic Stats Collector. You can selectwhich Stats Collector to use through the :setting:`STATS_CLASS` setting. Thedefault Stats Collector used is the :class:`MemoryStatsCollector`.-.. module:: scrapy.statscol+.. module:: scrapy.statscollectors:synopsis: Stats CollectorsMemoryStatsCollectordiff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.pyindex 57dfc3256..7459c4d73 100644--- a/scrapy/settings/default_settings.py+++ b/scrapy/settings/default_settings.py@@ -234,7 +234,7 @@ SPIDER_MIDDLEWARES_BASE = {SPIDER_MODULES = []-STATS_CLASS = 'scrapy.statscol.MemoryStatsCollector'+STATS_CLASS = 'scrapy.statscollectors.MemoryStatsCollector'STATS_DUMP = TrueSTATSMAILER_RCPTS = []diff --git a/scrapy/statscol.py b/scrapy/statscollectors.pysimilarity index 100%rename from scrapy/statscol.pyrename to scrapy/statscollectors.pydiff --git a/tests/test_spidermiddleware_depth.py b/tests/test_spidermiddleware_depth.pyindex 8120f1a95..5317795a3 100644--- a/tests/test_spidermiddleware_depth.py+++ b/tests/test_spidermiddleware_depth.py@@ -3,7 +3,7 @@ from unittest import TestCasefrom scrapy.spidermiddlewares.depth import DepthMiddlewarefrom scrapy.http import Response, Requestfrom scrapy.spider import Spider-from scrapy.statscol import StatsCollector+from scrapy.statscollectors import StatsCollectorfrom scrapy.utils.test import get_crawlerdiff --git a/tests/test_stats.py b/tests/test_stats.pyindex db1f50712..34f72736c 100644--- a/tests/test_stats.py+++ b/tests/test_stats.py@@ -1,7 +1,7 @@import unittestfrom scrapy.spider import Spider-from scrapy.statscol import StatsCollector, DummyStatsCollector+from scrapy.statscollectors import StatsCollector, DummyStatsCollectorfrom scrapy.utils.test import get_crawlerclass StatsCollectorTest(unittest.TestCase):