mirror of https://github.com/scrapy/scrapy.git
removed obsolete scrapy.utils.db module
This commit is contained in:
parent
7466150286
commit
827aa19c6e
|
|
@ -693,18 +693,6 @@ Scope: ``scrapy.contrib.memusage``
|
|||
The maximum amount of memory to allow (in megabytes) before sending a warning
|
||||
email notifying about it. If zero, no warning will be produced.
|
||||
|
||||
.. setting:: MYSQL_CONNECTION_SETTINGS
|
||||
|
||||
MYSQL_CONNECTION_SETTINGS
|
||||
-------------------------
|
||||
|
||||
Default: ``{}``
|
||||
|
||||
Scope: ``scrapy.utils.db.mysql_connect``
|
||||
|
||||
Settings to use for MySQL connections performed through
|
||||
``scrapy.utils.db.mysql_connect``
|
||||
|
||||
.. setting:: NEWSPIDER_MODULE
|
||||
|
||||
NEWSPIDER_MODULE
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import cPickle as pickle
|
|||
from datetime import datetime
|
||||
|
||||
from scrapy.stats.collector import StatsCollector
|
||||
from scrapy.utils.db import mysql_connect
|
||||
from scrapy.utils.mysql import mysql_connect
|
||||
from scrapy.conf import settings
|
||||
|
||||
class MysqlStatsCollector(StatsCollector):
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
import warnings
|
||||
|
||||
from scrapy.utils.mysql import *
|
||||
|
||||
warnings.warn("scrapy.utils.db module is depreacted, use scrapy.utils.mysql instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
Loading…
Reference in New Issue