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/parse | |
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/parse')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index fbd75b14ad..b9712929f3 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py | |||
@@ -84,13 +84,13 @@ def include(parentfn, fn, lineno, data, error_out): | |||
84 | bbpath = "%s:%s" % (dname, data.getVar("BBPATH", True)) | 84 | bbpath = "%s:%s" % (dname, data.getVar("BBPATH", True)) |
85 | abs_fn, attempts = bb.utils.which(bbpath, fn, history=True) | 85 | abs_fn, attempts = bb.utils.which(bbpath, fn, history=True) |
86 | if abs_fn and bb.parse.check_dependency(data, abs_fn): | 86 | if abs_fn and bb.parse.check_dependency(data, abs_fn): |
87 | logger.warn("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE', True))) | 87 | logger.warning("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE', True))) |
88 | for af in attempts: | 88 | for af in attempts: |
89 | bb.parse.mark_dependency(data, af) | 89 | bb.parse.mark_dependency(data, af) |
90 | if abs_fn: | 90 | if abs_fn: |
91 | fn = abs_fn | 91 | fn = abs_fn |
92 | elif bb.parse.check_dependency(data, fn): | 92 | elif bb.parse.check_dependency(data, fn): |
93 | logger.warn("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE', True))) | 93 | logger.warning("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE', True))) |
94 | 94 | ||
95 | try: | 95 | try: |
96 | bb.parse.handle(fn, data, True) | 96 | bb.parse.handle(fn, data, True) |