提交 b827097c 编写于 作者: J Julia Medina

Rename scrapy/statscol.py to scrapy/statscollectors.py

上级 4ddf152b
......@@ -65,7 +65,7 @@ how you :ref:`configure the downloader middlewares
For 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:: StatsCollector
......
......@@ -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`.
......
......@@ -75,7 +75,7 @@ available in Scrapy which extend the basic Stats Collector. You can select
which Stats Collector to use through the :setting:`STATS_CLASS` setting. The
default Stats Collector used is the :class:`MemoryStatsCollector`.
.. module:: scrapy.statscol
.. module:: scrapy.statscollectors
:synopsis: Stats Collectors
MemoryStatsCollector
......
......@@ -234,7 +234,7 @@ SPIDER_MIDDLEWARES_BASE = {
SPIDER_MODULES = []
STATS_CLASS = 'scrapy.statscol.MemoryStatsCollector'
STATS_CLASS = 'scrapy.statscollectors.MemoryStatsCollector'
STATS_DUMP = True
STATSMAILER_RCPTS = []
......
......@@ -3,7 +3,7 @@ from unittest import TestCase
from scrapy.spidermiddlewares.depth import DepthMiddleware
from scrapy.http import Response, Request
from scrapy.spider import Spider
from scrapy.statscol import StatsCollector
from scrapy.statscollectors import StatsCollector
from scrapy.utils.test import get_crawler
......
import unittest
from scrapy.spider import Spider
from scrapy.statscol import StatsCollector, DummyStatsCollector
from scrapy.statscollectors import StatsCollector, DummyStatsCollector
from scrapy.utils.test import get_crawler
class StatsCollectorTest(unittest.TestCase):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册