diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 14:01:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:34:30 +0100 |
commit | 654eadfa30624c62018665da618287b6cb5c7e3c (patch) | |
tree | ddca0b2edbf92abfd7e7f6e9cd9c3499d704ea45 /bitbake/lib/bb/ui/toasterui.py | |
parent | 5052bf92e40d8e0764a11e897f06d3d9c7c065e9 (diff) | |
download | poky-654eadfa30624c62018665da618287b6cb5c7e3c.tar.gz |
bitbake: bitbake: Update logger.warn() -> logger.warning()
python deprecated logger.warn() in favour of logger.warning(). This is only
used in bitbake code so we may as well just translate everything to avoid
warnings under python 3. Its safe for python 2.7.
(Bitbake rev: 676a5f592e8507e81b8f748d58acfea7572f8796)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 6bf4c1f030..addd5cc2fa 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -163,7 +163,7 @@ def main(server, eventHandler, params): | |||
163 | inheritlist, _ = server.runCommand(["getVariable", "INHERIT"]) | 163 | inheritlist, _ = server.runCommand(["getVariable", "INHERIT"]) |
164 | 164 | ||
165 | if not "buildhistory" in inheritlist.split(" "): | 165 | if not "buildhistory" in inheritlist.split(" "): |
166 | logger.warn("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.") | 166 | logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.") |
167 | build_history_enabled = False | 167 | build_history_enabled = False |
168 | 168 | ||
169 | if not params.observe_only: | 169 | if not params.observe_only: |
@@ -433,7 +433,7 @@ def main(server, eventHandler, params): | |||
433 | buildinfohelper.store_dependency_information(event) | 433 | buildinfohelper.store_dependency_information(event) |
434 | continue | 434 | continue |
435 | 435 | ||
436 | logger.warn("Unknown event: %s", event) | 436 | logger.warning("Unknown event: %s", event) |
437 | return_value += 1 | 437 | return_value += 1 |
438 | 438 | ||
439 | except EnvironmentError as ioerror: | 439 | except EnvironmentError as ioerror: |
@@ -461,5 +461,5 @@ def main(server, eventHandler, params): | |||
461 | if interrupted and return_value == 0: | 461 | if interrupted and return_value == 0: |
462 | return_value += 1 | 462 | return_value += 1 |
463 | 463 | ||
464 | logger.warn("Return value is %d", return_value) | 464 | logger.warning("Return value is %d", return_value) |
465 | return return_value | 465 | return return_value |