File: markup.py

package info (click to toggle)
python-scrapy 2.4.1-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,748 kB
  • sloc: python: 32,888; xml: 199; makefile: 90; sh: 7
file content (14 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
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 *  # noqa: F401


warnings.warn("Module `scrapy.utils.markup` is deprecated. "
              "Please import from `w3lib.html` instead.",
              ScrapyDeprecationWarning, stacklevel=2)