diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 09:29:55 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:33 +0000 |
commit | 5c50d43cfa7558b293ca5806e1a4bd25eddb0567 (patch) | |
tree | dbe208712392999466453c220cb9ab57944699fb /bitbake/bin | |
parent | 2dd8c01513bde8b30d27faf3a48f07c2e7e95ea7 (diff) | |
download | poky-5c50d43cfa7558b293ca5806e1a4bd25eddb0567.tar.gz |
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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 6 |
1 files changed, 5 insertions, 1 deletions
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): | |||
75 | bb.msg.warn(None, s) | 75 | bb.msg.warn(None, s) |
76 | 76 | ||
77 | warnings.showwarning = _showwarning | 77 | warnings.showwarning = _showwarning |
78 | warnings.simplefilter("ignore", DeprecationWarning) | 78 | warnings.filterwarnings("ignore") |
79 | warnings.filterwarnings("default", module="(<string>$|(oe|bb)\.)") | ||
80 | warnings.filterwarnings("ignore", category=PendingDeprecationWarning) | ||
81 | warnings.filterwarnings("ignore", category=ImportWarning) | ||
82 | warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$") | ||
79 | 83 | ||
80 | #============================================================================# | 84 | #============================================================================# |
81 | # main | 85 | # main |