Arch: Fixed compatibility with 0.17

This commit is contained in:
Yorik van Havre
2018-06-29 13:07:13 -03:00
parent f1096e8747
commit ed18728a80

View File

@@ -468,7 +468,10 @@ class Component:
def __getstate__(self):
return None
# for compatibility with 0.17
if hasattr(self,"Type"):
return self.Type
return "Component"
def __setstate__(self,state):