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/classes/kernel-module-split.bbclass | |
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/classes/kernel-module-split.bbclass')
-rw-r--r-- | meta/classes/kernel-module-split.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel-module-split.bbclass b/meta/classes/kernel-module-split.bbclass index 45639c613c..9a4329dcc9 100644 --- a/meta/classes/kernel-module-split.bbclass +++ b/meta/classes/kernel-module-split.bbclass @@ -109,7 +109,7 @@ python split_kernel_module_packages () { # instead is prefixed with /lib/modules/${KERNEL_VERSION} file = file.replace("/lib/modules/%s/" % d.getVar('KERNEL_VERSION', True) or '', '', 1) - if module_deps.has_key(file): + if file in module_deps: dependencies = [] for i in module_deps[file]: m = re.match(pattern, os.path.basename(i)) @@ -153,7 +153,7 @@ python split_kernel_module_packages () { files = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename) d.setVar('FILES_%s' % pkg, files) - if vals.has_key("description"): + if "description" in vals: old_desc = d.getVar('DESCRIPTION_' + pkg, True) or "" d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"]) |