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:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-29 15:30:33 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-29 15:30:33 +0300
commit89f0970a887612a6819263633180d027d06224af (patch)
tree0b900495a95a234c15f893563975eb346aee6e20 /plugins/CuraProfileReader
parent1e33360c359373f7acbf95ca9706514d12c0dd7f (diff)
Remove trailing whitespace from Python files
Diffstat (limited to 'plugins/CuraProfileReader')
-rw-r--r--plugins/CuraProfileReader/CuraProfileReader.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CuraProfileReader/CuraProfileReader.py b/plugins/CuraProfileReader/CuraProfileReader.py
index fa65033691..8822e9bb17 100644
--- a/plugins/CuraProfileReader/CuraProfileReader.py
+++ b/plugins/CuraProfileReader/CuraProfileReader.py
@@ -16,21 +16,21 @@ import zipfile
class CuraProfileReader(ProfileReader):
"""A plugin that reads profile data from Cura profile files.
-
+
It reads a profile from a .curaprofile file, and returns it as a profile
instance.
"""
def __init__(self) -> None:
"""Initialises the cura profile reader.
-
+
This does nothing since the only other function is basically stateless.
"""
super().__init__()
def read(self, file_name: str) -> List[Optional[InstanceContainer]]:
"""Reads a cura profile from a file and returns it.
-
+
:param file_name: The file to read the cura profile from.
:return: The cura profiles that were in the file, if any. If the file
could not be read or didn't contain a valid profile, ``None`` is
@@ -59,7 +59,7 @@ class CuraProfileReader(ProfileReader):
def _upgradeProfile(self, serialized: str, profile_id: str) -> List[Tuple[str, str]]:
"""Convert a profile from an old Cura to this Cura if needed.
-
+
:param serialized: The profile data to convert in the serialized on-disk format.
:param profile_id: The name of the profile.
:return: List of serialized profile strings and matching profile names.
@@ -85,7 +85,7 @@ class CuraProfileReader(ProfileReader):
def _loadProfile(self, serialized: str, profile_id: str) -> Optional[InstanceContainer]:
"""Load a profile from a serialized string.
-
+
:param serialized: The profile data to read.
:param profile_id: The name of the profile.
:return: The profile that was stored in the string.
@@ -114,7 +114,7 @@ class CuraProfileReader(ProfileReader):
def _upgradeProfileVersion(self, serialized: str, profile_id: str, main_version: int, setting_version: int) -> List[Tuple[str, str]]:
"""Upgrade a serialized profile to the current profile format.
-
+
:param serialized: The profile data to convert.
:param profile_id: The name of the profile.
:param source_version: The profile version of 'serialized'.