]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: 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>
Fri, 13 May 2016 12:41:32 +0000 (13:41 +0100)
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

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