]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
main: Change warn() -> warning()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 May 2016 07:02:45 +0000 (08:02 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 May 2016 10:02:42 +0000 (11:02 +0100)
This avoids a deprecation warning in python 3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/main.py

index 60c7da3ec7088f4218b9e657e39e2b8b31d71881..eb15779facc1f5ddb169d603da71616ecd5d53b5 100755 (executable)
@@ -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")