[oe-commits] [bitbake] 03/08: main: Change warn() -> warning()

git at git.openembedded.org git at git.openembedded.org
Thu May 12 09:50:54 UTC 2016


rpurdie pushed a commit to branch python3
in repository bitbake.

commit a13d1f3e3d2d08a3fce3ad468b73b0dcc83f3ec0
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu May 12 08:02:45 2016 +0100

    main: Change warn() -> warning()
    
    This avoids a deprecation warning in python 3.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list