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>
This commit is contained in:
Richard Purdie 2016-05-12 08:02:45 +01:00
parent 7c0a219d29
commit ef4a7c30ca
1 changed files with 1 additions and 1 deletions

View File

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