markup.py 400 B

1234567891011121314
  1. """
  2. Transitional module for moving to the w3lib library.
  3. For new code, always import from w3lib.html instead of this module
  4. """
  5. import warnings
  6. from scrapy.exceptions import ScrapyDeprecationWarning
  7. from w3lib.html import *
  8. warnings.warn("Module `scrapy.utils.markup` is deprecated. "
  9. "Please import from `w3lib.html` instead.",
  10. ScrapyDeprecationWarning, stacklevel=2)