1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 22:23:47 +00:00

Removed some deprecated code and modules

This commit is contained in:
Pablo Hoffman 2010-12-13 10:34:07 -02:00
parent 97a790d659
commit 60bdb7dc0a
5 changed files with 0 additions and 31 deletions

View File

@ -14,14 +14,6 @@ if sys.version_info < (2,5):
# ignore noisy twisted deprecation warnings # ignore noisy twisted deprecation warnings
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted') warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
# prevents noisy (and innocent) dropin.cache errors when loading spiders from
# egg files using the old Spider Manager. TODO: Remove for Scrapy 0.11
try:
from twisted.python.zippath import ZipPath
ZipPath.setContent = lambda x, y: None
except ImportError: # to avoid making setup.py depend on Twisted
pass
# monkey patches to fix external library issues # monkey patches to fix external library issues
from scrapy.xlib import twisted_250_monkeypatches, urlparse_monkeypatches from scrapy.xlib import twisted_250_monkeypatches, urlparse_monkeypatches

View File

@ -1,5 +0,0 @@
from scrapy.exceptions import *
import warnings
warnings.warn("scrapy.core.exceptions is deprecated and will be removed in Scrapy 0.11, use scrapy.exceptions instead", \
DeprecationWarning, stacklevel=2)

View File

@ -1,6 +0,0 @@
import warnings
warnings.warn("scrapy.core.manager.scrapymanager is deprecated and will be removed in Scrapy 0.11, use scrapy.project.crawler instead", \
DeprecationWarning, stacklevel=2)
from scrapy.project import crawler
scrapymanager = crawler

View File

@ -1,5 +0,0 @@
from scrapy.queue import *
import warnings
warnings.warn("scrapy.core.queue is deprecated and will be removed in Scrapy 0.11, use scrapy.queue instead", \
DeprecationWarning, stacklevel=2)

View File

@ -1,7 +0,0 @@
from scrapy.signals import *
import warnings
warnings.warn("scrapy.core.signals is deprecated and will be removed in Scrapy 0.11, use scrapy.signals instead", \
DeprecationWarning, stacklevel=2)
request_uploaded = response_downloaded