From f65043ecc8f7b506464b31ba5995fac58b4d0358 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 17 May 2017 16:17:48 +0200 Subject: [PATCH] Add spaces around binary operators and after comma Just a little code style thing. Contributes to issue CURA-3828. --- cura/Settings/ContainerManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py index 6a7b671be1..fc256e37be 100644 --- a/cura/Settings/ContainerManager.py +++ b/cura/Settings/ContainerManager.py @@ -712,14 +712,14 @@ class ContainerManager(QObject): if not global_stack: return "" - approximate_diameter = round(global_stack.getProperty("material_diameter","value")) - containers = self._container_registry.findInstanceContainers(id="generic_pla*", approximate_diameter=approximate_diameter) + approximate_diameter = round(global_stack.getProperty("material_diameter", "value")) + containers = self._container_registry.findInstanceContainers(id = "generic_pla*", approximate_diameter = approximate_diameter) if not containers: Logger.log("d", "Unable to create a new material by cloning Generic PLA, because it cannot be found for the material diameter for this machine.") return "" base_file = containers[0].getMetaDataEntry("base_file") - containers = self._container_registry.findInstanceContainers(id=base_file) + containers = self._container_registry.findInstanceContainers(id = base_file) if not containers: Logger.log("d", "Unable to create a new material by cloning Generic PLA, because the base file for Generic PLA for this machine can not be found.") return ""