mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
Ignore python warnings that come from places we don't care about
Only shows warnings that come from bb, oe, or <string> (Bitbake rev: 57018687f60b222ab220dd904c4bf870780171e9) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
2dd8c01513
commit
5c50d43cfa
+5
-1
@@ -75,7 +75,11 @@ def _showwarning(message, category, filename, lineno, file=None, line=None):
|
|||||||
bb.msg.warn(None, s)
|
bb.msg.warn(None, s)
|
||||||
|
|
||||||
warnings.showwarning = _showwarning
|
warnings.showwarning = _showwarning
|
||||||
warnings.simplefilter("ignore", DeprecationWarning)
|
warnings.filterwarnings("ignore")
|
||||||
|
warnings.filterwarnings("default", module="(<string>$|(oe|bb)\.)")
|
||||||
|
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
|
||||||
|
warnings.filterwarnings("ignore", category=ImportWarning)
|
||||||
|
warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$")
|
||||||
|
|
||||||
#============================================================================#
|
#============================================================================#
|
||||||
# main
|
# main
|
||||||
|
|||||||
Reference in New Issue
Block a user