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