Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordigitalfrost <gerald.hofmaier@gmail.com>2022-08-09 12:42:18 +0300
committerdigitalfrost <gerald.hofmaier@gmail.com>2022-08-09 12:42:18 +0300
commit60c8712b10cd5612c09412c2d7405a8ffe070005 (patch)
tree1b930499478b55ed90f073d36042dd680cc9a765
parent2968f96e8581f2460637da24e05025e394bc6562 (diff)
CuraContainerStack.py: improve TypeIndexMap
Cleaner and more idiomatic way to reverse a dictionary
-rwxr-xr-xcura/Settings/CuraContainerStack.py2
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()}