From: Richard Purdie Date: Thu, 12 May 2016 07:02:45 +0000 (+0100) Subject: bitbake: main: Change warn() -> warning() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef4a7c30caa294969cd99222f80e1948cc24b2e5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: main: Change warn() -> warning() This avoids a deprecation warning in python 3. (Bitbake rev: bf1a92d0c002d73e8a34472dced1343dc4a4251a) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 60c7da3ec70..eb15779facc 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/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")