mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
CuraContainerStack.py: improve TypeIndexMap
Cleaner and more idiomatic way to reverse a dictionary
This commit is contained in:
parent
2968f96e85
commit
60c8712b10
1 changed files with 1 additions and 1 deletions
|
@ -427,4 +427,4 @@ class _ContainerIndexes:
|
|||
}
|
||||
|
||||
# Reverse lookup: type -> index
|
||||
TypeIndexMap = dict([(v, k) for k, v in IndexTypeMap.items()])
|
||||
TypeIndexMap = {v: k for k, v in IndexTypeMap.items()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue