summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/main.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-12 08:02:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:41:32 +0100
commitef4a7c30caa294969cd99222f80e1948cc24b2e5 (patch)
tree261c0c00f989ce6d1a057bfbd8d11c4c942b41e9 /bitbake/lib/bb/main.py
parent7c0a219d29cb7b4ee87e297b2678d955cfdcaa2e (diff)
downloadpoky-ef4a7c30caa294969cd99222f80e1948cc24b2e5.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/main.py')
-rwxr-xr-xbitbake/lib/bb/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 60c7da3ec7..eb15779fac 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):
116 _warnings_showwarning(message, category, filename, lineno, file, line) 116 _warnings_showwarning(message, category, filename, lineno, file, line)
117 else: 117 else:
118 s = warnings.formatwarning(message, category, filename, lineno) 118 s = warnings.formatwarning(message, category, filename, lineno)
119 warnlog.warn(s) 119 warnlog.warning(s)
120 120
121warnings.showwarning = _showwarning 121warnings.showwarning = _showwarning
122warnings.filterwarnings("ignore") 122warnings.filterwarnings("ignore")