Make _parseCompatibleValue a class method

It might as well be static, since it doesn't need an instance.

Contributes to issue CURA-4243.
This commit is contained in:
Ghostkeeper 2017-11-01 14:52:57 +01:00
parent 74bd527b03
commit ddf5ab0494
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -667,7 +667,8 @@ class XmlMaterialProfile(InstanceContainer):
return json.load(f)
## Parse the value of the "material compatible" property.
def _parseCompatibleValue(self, value: str):
@classmethod
def _parseCompatibleValue(cls, value: str):
return value in {"yes", "unknown"}
# Map XML file setting names to internal names