All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: bitbake-devel@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 2/7] bitbake: drop old rules for python warnings
Date: Thu, 16 Sep 2021 22:22:32 +0200	[thread overview]
Message-ID: <20210916202237.1929584-2-alex@linutronix.de> (raw)
In-Reply-To: <20210916202237.1929584-1-alex@linutronix.de>

These no longer even work, and it's much better to just see all warnings
and fix them as they happen.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 bitbake/lib/bb/main.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 06bad495acf..639fc1885db 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):
         warnlog.warning(s)
 
 warnings.showwarning = _showwarning
-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>$")
-warnings.filterwarnings("ignore", message="With-statements now directly support multiple context managers")
-
 
 def create_bitbake_parser():
     parser = optparse.OptionParser(
-- 
2.20.1


  reply	other threads:[~2021-09-16 20:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 20:22 [PATCH 1/7] bitbake: enable python warnings at the first opportunity Alexander Kanavin
2021-09-16 20:22 ` Alexander Kanavin [this message]
2021-09-16 20:22 ` [PATCH 3/7] bitbake: correct the collections vs collections.abc deprecation Alexander Kanavin
2021-09-16 20:22 ` [PATCH 4/7] bitbake: fix regexp deprecation warnings Alexander Kanavin
2021-09-16 20:22 ` [PATCH 5/7] bitbake: do not import imp in layerindexlib Alexander Kanavin
2021-09-16 20:22 ` [PATCH 6/7] bitbake: adjust parser error check for python 3.10 compatibility Alexander Kanavin
2021-09-16 20:22 ` [PATCH 7/7] bitbake: correct deprecation warning in process.py Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210916202237.1929584-2-alex@linutronix.de \
    --to=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.