summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/main.py
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-09-16 22:22:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-17 07:26:23 +0100
commit3891a56a78c78e6c5fb36431a0f15e7085aa9275 (patch)
tree33e512f825c8898870a3b379a58e6b597ad79a78 /bitbake/lib/bb/main.py
parent626e949292a4d21cc828fcc6c8d5f62a93622f61 (diff)
downloadpoky-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/main.py')
-rwxr-xr-xbitbake/lib/bb/main.py7
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
114warnings.showwarning = _showwarning 114warnings.showwarning = _showwarning
115warnings.filterwarnings("ignore")
116warnings.filterwarnings("default", module="(<string>$|(oe|bb)\.)")
117warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
118warnings.filterwarnings("ignore", category=ImportWarning)
119warnings.filterwarnings("ignore", category=DeprecationWarning, module="<string>$")
120warnings.filterwarnings("ignore", message="With-statements now directly support multiple context managers")
121
122 115
123def create_bitbake_parser(): 116def create_bitbake_parser():
124 parser = optparse.OptionParser( 117 parser = optparse.OptionParser(