diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-09-16 22:22:32 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-17 07:26:23 +0100 |
| commit | 3891a56a78c78e6c5fb36431a0f15e7085aa9275 (patch) | |
| tree | 33e512f825c8898870a3b379a58e6b597ad79a78 /bitbake/lib/bb | |
| parent | 626e949292a4d21cc828fcc6c8d5f62a93622f61 (diff) | |
| download | poky-3891a56a78c78e6c5fb36431a0f15e7085aa9275.tar.gz | |
bitbake: bitbake: drop old rules for python warnings
These no longer even work, and it's much better to just see all warnings
and fix them as they happen.
(Bitbake rev: 62d96ea2afbb0cfdb0d1f932dc96643e7bcd7f26)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
| -rwxr-xr-x | bitbake/lib/bb/main.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 06bad495ac..639fc1885d 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
| @@ -112,13 +112,6 @@ def _showwarning(message, category, filename, lineno, file=None, line=None): | |||
| 112 | warnlog.warning(s) | 112 | warnlog.warning(s) |
| 113 | 113 | ||
| 114 | warnings.showwarning = _showwarning | 114 | warnings.showwarning = _showwarning |
| 115 | warnings.filterwarnings("ignore") | ||
| 116 | warnings.filterwarnings("default", module="(<string>$|(oe|bb)\.)") | ||
| 117 | warnings.filterwarnings("ignore", category=PendingDeprecationWarning) | ||
| 118 | warnings.filterwarnings("ignore", category=ImportWarning) | ||
| 119 | warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$") | ||
| 120 | warnings.filterwarnings("ignore", message="With-statements now directly support multiple context managers") | ||
| 121 | |||
| 122 | 115 | ||
| 123 | def create_bitbake_parser(): | 116 | def create_bitbake_parser(): |
| 124 | parser = optparse.OptionParser( | 117 | parser = optparse.OptionParser( |
