mirror of https://github.com/scrapy/scrapy.git
added more information to deprecation notice
This commit is contained in:
parent
784722774b
commit
dedd6b2256
|
|
@ -1,5 +1,5 @@
|
|||
from scrapy.exceptions import *
|
||||
|
||||
import warnings
|
||||
warnings.warn("scrapy.core.exceptions is deprecated, use scrapy.exceptions instead", \
|
||||
warnings.warn("scrapy.core.exceptions is deprecated and will be removed in Scrapy 0.11, use scrapy.exceptions instead", \
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from scrapy.signals import *
|
||||
|
||||
import warnings
|
||||
warnings.warn("scrapy.core.signals is deprecated, use scrapy.signals instead", \
|
||||
warnings.warn("scrapy.core.signals is deprecated and will be removed in Scrapy 0.11, use scrapy.signals instead", \
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue