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

This commit is contained in:
Julia Medina 2015-04-23 13:07:48 -03:00
parent 4ddf152be3
commit b827097c91
7 changed files with 9 additions and 9 deletions

View File

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

View File

@ -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`.

View File

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

View File

@ -234,7 +234,7 @@ SPIDER_MIDDLEWARES_BASE = {
SPIDER_MODULES = []
STATS_CLASS = 'scrapy.statscol.MemoryStatsCollector'
STATS_CLASS = 'scrapy.statscollectors.MemoryStatsCollector'
STATS_DUMP = True
STATSMAILER_RCPTS = []

View File

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

View File

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