From fbffff4c8dd2a01110ab478180bb939371527b9b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Jul 2016 15:28:35 +0200 Subject: [PATCH] Write list creation as literal Contributes to issue CURA-844. --- .../VersionUpgrade21to22/MachineInstance.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py index 84b38b9955..b64e87f5b4 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py @@ -66,12 +66,13 @@ class MachineInstance: config.set("general", "type", self._type_name) config.set("general", "version", "2") # Hard-code version 2, since if this number changes the programmer MUST change this entire function. - containers = [] - containers.append(self._name + "_current_settings") - containers.append("empty") #The dependencies of the active profile, material and variant changed, so there is no 1:1 relation possible here. - containers.append("empty") - containers.append("empty") - containers.append(self._type_name) + containers = [ + self._name + "_current_settings", + "empty", #The dependencies of the active profile, material and variant changed, so there is no 1:1 relation possible here. + "empty", + "empty", + self._type_name + ] config.set("general", "containers", ",".join(containers)) config.add_section("metadata")