mirror of https://github.com/scrapy/scrapy.git
Rename scrapy/statscol.py to scrapy/statscollectors.py
This commit is contained in:
parent
4ddf152be3
commit
b827097c91
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue