diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-04-28 17:01:54 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-04-28 17:01:54 +0300 |
commit | 9009fb9d3de9e0223d500702f603d2145e6b0f1f (patch) | |
tree | b40d26d696f5071d2085da8b7d8c9d957e72679d /plugins/CuraProfileWriter | |
parent | efd14421cc4cf72ac7ac453b257fc794851c768f (diff) |
Codestyle & documentation
CURA-537
Diffstat (limited to 'plugins/CuraProfileWriter')
-rw-r--r-- | plugins/CuraProfileWriter/CuraProfileWriter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CuraProfileWriter/CuraProfileWriter.py b/plugins/CuraProfileWriter/CuraProfileWriter.py index 1ac206e54a..82df446b8a 100644 --- a/plugins/CuraProfileWriter/CuraProfileWriter.py +++ b/plugins/CuraProfileWriter/CuraProfileWriter.py @@ -6,6 +6,7 @@ from UM.Logger import Logger from UM.SaveFile import SaveFile from UM.Settings.ProfileWriter import ProfileWriter + ## Writes profiles to Cura's own profile format with config files. class CuraProfileWriter(ProfileWriter): ## Writes a profile to the specified file path. @@ -17,7 +18,7 @@ class CuraProfileWriter(ProfileWriter): def write(self, path, profile): serialised = profile.serialise() try: - with SaveFile(path, "wt", -1, "utf-8") as f: #Open the specified file. + with SaveFile(path, "wt", -1, "utf-8") as f: # Open the specified file. f.write(serialised) except Exception as e: Logger.log("e", "Failed to write profile to %s: %s", path, str(e)) |