mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 12:50:09 +01:00
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>
This commit is contained in:
parent
e1abed62d5
commit
78e38c57bf
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue