diff options
author | Simon Edwards <s.edwards@ultimaker.com> | 2017-01-17 22:56:28 +0300 |
---|---|---|
committer | Simon Edwards <s.edwards@ultimaker.com> | 2017-01-17 22:56:28 +0300 |
commit | cf85831d87daee40cf9b7cd8c66931a0558ecfd5 (patch) | |
tree | c83732924fa7828e9a529ff719866c9c4cfa9912 /plugins/VersionUpgrade/VersionUpgrade21to22 | |
parent | 1b43e4981ed4b6623c9f0553d9269bf07c36ed9e (diff) |
Also check the upgrade plugins.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade21to22')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index 5897524e93..3bff7c1bf5 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -26,7 +26,7 @@ class Profile: # # \param serialised A string with the contents of a profile. # \param filename The supposed filename of the profile, without extension. - def __init__(self, serialised: str, filename: str): + def __init__(self, serialised: str, filename: str) -> None: self._filename = filename parser = configparser.ConfigParser(interpolation = None) @@ -58,17 +58,17 @@ class Profile: self._material_name = None # Parse the settings. - self._settings = {} + self._settings = {} # type: Dict[str,str] if parser.has_section("settings"): for key, value in parser["settings"].items(): self._settings[key] = value # Parse the defaults and the disabled defaults. - self._changed_settings_defaults = {} + self._changed_settings_defaults = {} # type: Dict[str,str] if parser.has_section("defaults"): for key, value in parser["defaults"].items(): self._changed_settings_defaults[key] = value - self._disabled_settings_defaults = [] + self._disabled_settings_defaults = [] # type: List[str] if parser.has_section("disabled_defaults"): disabled_defaults_string = parser.get("disabled_defaults", "values") self._disabled_settings_defaults = [item for item in disabled_defaults_string.split(",") if item != ""] # Split by comma. |