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-28 17:21:49 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-28 17:21:49 +0300
commitbb2a176e36dba2d5963f09e539986da3ae2ec5ec (patch)
tree02cc189a1f98f4e2eb0a613991a8b2d748593d92 /plugins/VersionUpgrade/VersionUpgrade35to40
parent5af9faf5e52dc3024c4b9253a39ee49a1eff8cb3 (diff)
Convert doxygen to rst for VersionUpgrades 40+
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade35to40')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py b/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
index fdca7d15df..85a7e3135a 100644
--- a/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
+++ b/plugins/VersionUpgrade/VersionUpgrade35to40/VersionUpgrade35to40.py
@@ -34,8 +34,9 @@ class VersionUpgrade35to40(VersionUpgrade):
parser.write(result)
return [filename], [result.getvalue()]
- ## Upgrades Preferences to have the new version number.
def upgradePreferences(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
+ """Upgrades Preferences to have the new version number."""
+
parser = configparser.ConfigParser(interpolation=None)
parser.read_string(serialized)
@@ -48,9 +49,9 @@ class VersionUpgrade35to40(VersionUpgrade):
parser.write(result)
return [filename], [result.getvalue()]
- ## Upgrades instance containers to have the new version
- # number.
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
+ """Upgrades instance containers to have the new version number."""
+
parser = configparser.ConfigParser(interpolation=None)
parser.read_string(serialized)