mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
No need to have two copies here, simply have the dict and then flip it so it works with the strings as keys too. The slightly odd list comprehension is because we can't add to a dictionary while iterating through it, so we need to get everything out first. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>