App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class. Thus rename them to 'loads' and 'dumps'
This commit is contained in:
@@ -18,12 +18,12 @@ Sub-elements such as vertices, edges or faces are accessible as:
|
||||
* Edge#, where # is in range(1, number of edges)
|
||||
* Face#, where # is in range(1, number of faces)</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="__getstate__" Const="true">
|
||||
<Methode Name="dumps" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Serialize the content of this shape to a string in BREP format.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="__setstate__">
|
||||
<Methode Name="loads">
|
||||
<Documentation>
|
||||
<UserDocu>Deserialize the content of this shape from a string in BREP format.</UserDocu>
|
||||
</Documentation>
|
||||
|
||||
Reference in New Issue
Block a user