mirror of https://github.com/scrapy/scrapy.git
deprecate scrapy.utils.markup
it was an import-only shim for w3lib.html
This commit is contained in:
parent
64ff3cd6aa
commit
cb4477db3e
|
|
@ -3,5 +3,12 @@ Transitional module for moving to the w3lib library.
|
|||
|
||||
For new code, always import from w3lib.html instead of this module
|
||||
"""
|
||||
import warnings
|
||||
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
from w3lib.html import *
|
||||
|
||||
|
||||
warnings.warn("Module `scrapy.utils.markup` is deprecated. "
|
||||
"Please import from `w3lib.html` instead.",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
Loading…
Reference in New Issue