From: Chris Larson Date: Thu, 10 Jun 2010 16:29:55 +0000 (-0700) Subject: Ignore python warnings that come from places we don't care about X-Git-Tag: 2011-1~3174 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5c50d43cfa7558b293ca5806e1a4bd25eddb0567;p=openembedded-core.git Ignore python warnings that come from places we don't care about Only shows warnings that come from bb, oe, or (Bitbake rev: 57018687f60b222ab220dd904c4bf870780171e9) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 9556fb0441..960d8d0bc7 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -75,7 +75,11 @@ def _showwarning(message, category, filename, lineno, file=None, line=None): bb.msg.warn(None, s) warnings.showwarning = _showwarning -warnings.simplefilter("ignore", DeprecationWarning) +warnings.filterwarnings("ignore") +warnings.filterwarnings("default", module="($|(oe|bb)\.)") +warnings.filterwarnings("ignore", category=PendingDeprecationWarning) +warnings.filterwarnings("ignore", category=ImportWarning) +warnings.filterwarnings("ignore", category=DeprecationWarning, module="$") #============================================================================# # main