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:
authorJaime van Kessel <nallath@gmail.com>2016-04-28 17:01:54 +0300
committerJaime van Kessel <nallath@gmail.com>2016-04-28 17:01:54 +0300
commit9009fb9d3de9e0223d500702f603d2145e6b0f1f (patch)
treeb40d26d696f5071d2085da8b7d8c9d957e72679d /plugins/CuraProfileWriter
parentefd14421cc4cf72ac7ac453b257fc794851c768f (diff)
Codestyle & documentation
CURA-537
Diffstat (limited to 'plugins/CuraProfileWriter')
-rw-r--r--plugins/CuraProfileWriter/CuraProfileWriter.py3
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))