# HG changeset patch # User Alexandre Fayolle # Date 1255411911 -7200 # Node ID 012da21e43fe00c18e712e8a23d343a426046f99 # Parent b5a8ba38849402bb3ec1908f79a7834744bf9742 ignore some internal warnings prevent the display of warnings caused by the definition of deprecated functions so that the output of cubicweb-ctl is not polluted. diff -r b5a8ba388494 -r 012da21e43fe selectors.py --- a/selectors.py Mon Oct 12 17:11:21 2009 +0200 +++ b/selectors.py Tue Oct 13 07:31:51 2009 +0200 @@ -43,7 +43,7 @@ __docformat__ = "restructuredtext en" import logging -from warnings import warn +from warnings import warn, filterwarnings from logilab.common.compat import all from logilab.common.deprecation import deprecated @@ -977,6 +977,10 @@ # XXX DEPRECATED ############################################################## +# XXX remove when deprecated functions are removed +filterwarnings('ignore', + category=DeprecationWarning, + module='cubicweb.selectors') from cubicweb.vregistry import chainall yes_selector = deprecated()(yes) @@ -1171,3 +1175,4 @@ action=getattr(cls, 'require_permission', 'read')) return cls return plug_selector +