deprecate scrapy.utils.markup

it was an import-only shim for w3lib.html
This commit is contained in:
Mikhail Korobov 2019-07-08 11:18:40 +05:00
parent 64ff3cd6aa
commit cb4477db3e
1 changed files with 7 additions and 0 deletions

View File

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