diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:56:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:04:19 +0100 |
commit | 3dff13793e875ff58cc38c4a960caca9b6969843 (patch) | |
tree | c2ccda6240f9955db9e9ead345d0230439d4a5b4 /meta/recipes-core | |
parent | e2e1dcd74bc45381baccf507c0309dd792229afe (diff) | |
download | openembedded-core-3dff13793e875ff58cc38c4a960caca9b6969843.tar.gz openembedded-core-3dff13793e875ff58cc38c4a960caca9b6969843.tar.bz2 openembedded-core-3dff13793e875ff58cc38c4a960caca9b6969843.zip |
image/kernel-module-split/eglibc-ld.inc: Remove has_key() usage
The has_key() attribute has been removed in python 3 since there is better
syntax available. Use the improved syntax.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-ld.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-ld.inc b/meta/recipes-core/eglibc/eglibc-ld.inc index e596b5591f..b1701f008b 100644 --- a/meta/recipes-core/eglibc/eglibc-ld.inc +++ b/meta/recipes-core/eglibc/eglibc-ld.inc @@ -1,7 +1,7 @@ def ld_append_if_tune_exists(d, infos, dict): tune = d.getVar("DEFAULTTUNE", True) or "" libdir = d.getVar("base_libdir", True) or "" - if dict.has_key(tune): + if tune in dict: infos['ldconfig'].add('{"' + libdir + '/' + dict[tune][0] + '",' + dict[tune][1] + ' }') infos['lddrewrite'].add(libdir+'/'+dict[tune][0]) |