File: pydispatch.py

package info (click to toggle)
python-scrapy 1.5.1-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,404 kB
  • sloc: python: 25,793; xml: 199; makefile: 95; sh: 33
file content (19 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from __future__ import absolute_import

import warnings
from scrapy.exceptions import ScrapyDeprecationWarning

from pydispatch import (
    dispatcher,
    errors,
    robust,
    robustapply,
    saferef,
)

warnings.warn("Importing from scrapy.xlib.pydispatch is deprecated and will"
              " no longer be supported in future Scrapy versions."
              " If you just want to connect signals use the from_crawler class method,"
              " otherwise import pydispatch directly if needed."
              " See: https://github.com/scrapy/scrapy/issues/1762",
              ScrapyDeprecationWarning, stacklevel=2)