support/scripts/pkg-stats: get_config_packages(): use dict.values()
There is no need to get both the key and the value out of the dict if the key is not used, so use dict.values() instead. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -358,7 +358,7 @@ def get_pkglist(npackages, package_list):
|
|||||||
def get_config_packages():
|
def get_config_packages():
|
||||||
cmd = ["make", "--no-print-directory", "show-info"]
|
cmd = ["make", "--no-print-directory", "show-info"]
|
||||||
js = json.loads(subprocess.check_output(cmd))
|
js = json.loads(subprocess.check_output(cmd))
|
||||||
return set([v["name"] for _, v in js.items()])
|
return set([v["name"] for v in js.values()])
|
||||||
|
|
||||||
|
|
||||||
def package_init_make_info():
|
def package_init_make_info():
|
||||||
|
|||||||
Reference in New Issue
Block a user