mirror of
https://git.yoctoproject.org/poky
synced 2026-07-26 07:07:08 +00:00
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. (From OE-Core rev: 3dff13793e875ff58cc38c4a960caca9b6969843) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -368,7 +368,7 @@ for dir in dirs.split():
|
||||
key=str(os.path.join("/",os.path.relpath(item,dir)))
|
||||
|
||||
valid=True;
|
||||
if files.has_key(key):
|
||||
if key in files:
|
||||
#check whether the file is allow to replace
|
||||
if allow_rep.match(key):
|
||||
valid=True
|
||||
|
||||
Reference in New Issue
Block a user