[gnome-continuous-yocto/gnomeostree-3.28-rocko: 256/8267] bitbake: main: Change warn() -> warning()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 256/8267] bitbake: main: Change warn() -> warning()
- Date: Sat, 16 Dec 2017 20:10:19 +0000 (UTC)
commit ef4a7c30caa294969cd99222f80e1948cc24b2e5
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Thu May 12 08:02:45 2016 +0100
bitbake: main: Change warn() -> warning()
This avoids a deprecation warning in python 3.
(Bitbake rev: bf1a92d0c002d73e8a34472dced1343dc4a4251a)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/lib/bb/main.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 60c7da3..eb15779 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -116,7 +116,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")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]