diff options
author | digitalfrost <gerald.hofmaier@gmail.com> | 2022-08-09 12:42:18 +0300 |
---|---|---|
committer | digitalfrost <gerald.hofmaier@gmail.com> | 2022-08-09 12:42:18 +0300 |
commit | 60c8712b10cd5612c09412c2d7405a8ffe070005 (patch) | |
tree | 1b930499478b55ed90f073d36042dd680cc9a765 | |
parent | 2968f96e8581f2460637da24e05025e394bc6562 (diff) |
CuraContainerStack.py: improve TypeIndexMap
Cleaner and more idiomatic way to reverse a dictionary
-rwxr-xr-x | cura/Settings/CuraContainerStack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Settings/CuraContainerStack.py b/cura/Settings/CuraContainerStack.py index 5348deb4bd..a8a1d780ea 100755 --- a/cura/Settings/CuraContainerStack.py +++ b/cura/Settings/CuraContainerStack.py @@ -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()} |