mirror of https://github.com/scrapy/scrapy.git
scrapy/contrib/spidermiddleware shims
This commit is contained in:
parent
180272c092
commit
b2a15ddbf3
|
|
@ -0,0 +1,7 @@
|
|||
import warnings
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
warnings.warn("Module `scrapy.contrib.spidermiddleware.depth` is deprecated, "
|
||||
"use `scrapy.spidermiddlewares.depth` instead",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
|
||||
from scrapy.spidermiddlewares.depth import *
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import warnings
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
warnings.warn("Module `scrapy.contrib.spidermiddleware.httperror` is deprecated, "
|
||||
"use `scrapy.spidermiddlewares.httperror` instead",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
|
||||
from scrapy.spidermiddlewares.httperror import *
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import warnings
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
warnings.warn("Module `scrapy.contrib.spidermiddleware.offsite` is deprecated, "
|
||||
"use `scrapy.spidermiddlewares.offsite` instead",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
|
||||
from scrapy.spidermiddlewares.offsite import *
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import warnings
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
warnings.warn("Module `scrapy.contrib.spidermiddleware.referer` is deprecated, "
|
||||
"use `scrapy.spidermiddlewares.referer` instead",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
|
||||
from scrapy.spidermiddlewares.referer import *
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import warnings
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
warnings.warn("Module `scrapy.contrib.spidermiddleware.urllength` is deprecated, "
|
||||
"use `scrapy.spidermiddlewares.urllength` instead",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
|
||||
from scrapy.spidermiddlewares.urllength import *
|
||||
Loading…
Reference in New Issue