* [PATCH] main: Change warn() -> warning()
@ 2016-05-12 9:55 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-05-12 9:55 UTC (permalink / raw)
To: bitbake-devel
This avoids a deprecation warning in python 3.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/lib/bb/main.py b/lib/bb/main.py
index a0e6425..a287905 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -117,7 +117,7 @@ def _showwarning(message, category, filename, lineno, file=None, line=None):
_warnings_showwarning(message, category, filename, lineno, file, line)
else:
s = warnings.formatwarning(message, category, filename, lineno)
- warnlog.warn(s)
+ warnlog.warning(s)
warnings.showwarning = _showwarning
warnings.filterwarnings("ignore")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-12 9:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 9:55 [PATCH] main: Change warn() -> warning() Richard Purdie
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.