]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: use 'in' instead of has_key
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 10 May 2016 13:27:19 +0000 (16:27 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 May 2016 21:05:10 +0000 (22:05 +0100)
commit3d7ad7ba0d1a6f688ae885817c049f2a8ced11b5
tree3770188c5cf43438785573f8da0400263c1f09ce
parent29f6ade68fb2b506a23a7eb3a00cdcffa291b362
toaster: use 'in' instead of has_key

Dictionary method has_key is deprecated in python 2 and absent
in python 3.

Used '<key> in <dict>' statement to make the code working on
both python 2 and python 3.

[YOCTO #9584]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/views.py
lib/toaster/toastermain/settings.py
lib/toaster/toastermain/urls.py