diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-12 08:02:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-13 13:41:32 +0100 |
commit | ef4a7c30caa294969cd99222f80e1948cc24b2e5 (patch) | |
tree | 261c0c00f989ce6d1a057bfbd8d11c4c942b41e9 /bitbake/lib/bb/main.py | |
parent | 7c0a219d29cb7b4ee87e297b2678d955cfdcaa2e (diff) | |
download | poky-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-x | bitbake/lib/bb/main.py | 2 |
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 | ||
121 | warnings.showwarning = _showwarning | 121 | warnings.showwarning = _showwarning |
122 | warnings.filterwarnings("ignore") | 122 | warnings.filterwarnings("ignore") |