From 2f75839e7a9a92e8f01943492d56e454809b2123 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Sat, 27 Mar 2010 13:23:13 -0300 Subject: [PATCH] Ignore noisy Twisted deprecation warnings --- scrapy/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scrapy/__init__.py b/scrapy/__init__.py index 0051aa75e..2ecc7749c 100644 --- a/scrapy/__init__.py +++ b/scrapy/__init__.py @@ -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