Ignore noisy Twisted deprecation warnings

This commit is contained in:
Pablo Hoffman 2010-03-27 13:23:13 -03:00
parent f19c939925
commit 2f75839e7a
1 changed files with 4 additions and 1 deletions

View File

@ -5,12 +5,15 @@ Scrapy - a screen scraping framework written in Python
version_info = (0, 8, 0, '', 0)
__version__ = "0.8"
import sys, os
import sys, os, warnings
if sys.version_info < (2,5):
print "Scrapy %s requires Python 2.5 or above" % __version__
sys.exit(1)
# ignore noisy twisted deprecation warnings
warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
# monkey patches to fix external library issues
from scrapy.xlib import twisted_250_monkeypatches