From 78e38c57bf2e0397b3a9984ab9e103bc41d1bf8d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 3 Jul 2023 17:06:57 +0200 Subject: [PATCH] build: simplify dict loops Instead of iterating on the keys and then using get(), iterate on both keys and values. Signed-off-by: Simon Ser --- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 8bf783a..4cc0c76 100644 --- a/meson.build +++ b/meson.build @@ -57,16 +57,16 @@ foreach name : stable_protocols protocol_files += ['stable/@0@/@0@.xml'.format(name)] endforeach -foreach name : staging_protocols.keys() - foreach version : staging_protocols.get(name) +foreach name, versions : staging_protocols + foreach version : versions protocol_files += [ 'staging/@0@/@0@-@1@.xml'.format(name, version) ] endforeach endforeach -foreach name : unstable_protocols.keys() - foreach version : unstable_protocols.get(name) +foreach name, versions : unstable_protocols + foreach version : versions protocol_files += [ 'unstable/@0@/@0@-unstable-@1@.xml'.format(name, version) ]