Browse Source

Rename exportTo -> export

Because exportTo doesn't make sense if there is no parameter to which we're exporting.

Contributes to issue CURA-844.
Ghostkeeper 9 years ago
parent
commit
f7ca489877

+ 1 - 1
plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py

@@ -57,7 +57,7 @@ class MachineInstance:
     #
     #   \return A serialised form of this machine instance, serialised in
     #   version 2 of the file format.
-    def exportTo(self):
+    def export(self):
         import VersionUpgrade21to22 # Import here to prevent circular dependencies.
         config = configparser.ConfigParser(interpolation = None) # Build a config file in the form of version 2.
 

+ 1 - 1
plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py

@@ -72,7 +72,7 @@ class Profile:
     #
     #   \return A serialised form of this profile, serialised in version 2 of
     #   the file format.
-    def exportTo(self):
+    def export(self):
         import VersionUpgrade21to22 # Import here to prevent circular dependencies.
         config = configparser.ConfigParser(interpolation = None)
 

+ 2 - 2
plugins/VersionUpgrade/VersionUpgrade21to22/VersionUpgrade21to22.py

@@ -19,7 +19,7 @@ class VersionUpgrade21to22(VersionUpgrade):
         machine_instance = MachineInstance.importFrom(serialised)
         if not machine_instance: #Invalid file format.
             return None
-        return machine_instance.exportTo()
+        return machine_instance.export()
 
     ##  Converts profiles from format version 1 to version 2.
     #
@@ -30,7 +30,7 @@ class VersionUpgrade21to22(VersionUpgrade):
         profile = Profile.importFrom(serialised)
         if not profile: # Invalid file format.
             return None
-        return profile.exportTo()
+        return profile.export()
 
     ##  Translates settings for the change from Cura 2.1 to 2.2.
     #