[oe-commits] [bitbake] 02/12: main: Change warn() -> warning()

git at git.openembedded.org git at git.openembedded.org
Thu May 12 10:05:58 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit bf1a92d0c002d73e8a34472dced1343dc4a4251a
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 60c7da3..eb15779 100755
--- a/lib/bb/main.py
+++ b/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")

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


More information about the Openembedded-commits mailing list