diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 09:29:55 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-08-11 15:09:24 -0700 |
commit | 57018687f60b222ab220dd904c4bf870780171e9 (patch) | |
tree | 821a5314148f2f60cef7a3e05a443cc29945985d /bin | |
parent | ddff0a5ab2c80f6e250d4849693d722f3d7e1047 (diff) | |
download | bitbake-57018687f60b222ab220dd904c4bf870780171e9.tar.gz |
Ignore python warnings that come from places we don't care about
Only shows warnings that come from bb, oe, or <string>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake index 846172a48..116b133c7 100755 --- a/bin/bitbake +++ b/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="(<string>$|(oe|bb)\.)") +warnings.filterwarnings("ignore", category=PendingDeprecationWarning) +warnings.filterwarnings("ignore", category=ImportWarning) +warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$") #============================================================================# # main |