summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-03 17:06:57 +0200
committerSimon Ser <contact@emersion.fr>2023-10-10 14:42:05 +0200
commit78e38c57bf2e0397b3a9984ab9e103bc41d1bf8d (patch)
treecbdac7358b3bcc842bdd023244c1437e63beb423
parente1abed62d57f1565876b13d5b6677f61fdeb0a5d (diff)
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 <contact@emersion.fr>
-rw-r--r--meson.build8
1 files 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)
]