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:
wmayer
2023-09-22 16:06:21 +02:00
committed by Chris Hennes
parent 21264aab87
commit ef9936a940
75 changed files with 227 additions and 227 deletions

View File

@@ -42,8 +42,8 @@ class BaseFemPythonObject(object):
# they are needed, see:
# https://forum.freecad.org/viewtopic.php?f=18&t=44021
# https://forum.freecad.org/viewtopic.php?f=18&t=44009
def __getstate__(self):
def dumps(self):
return None
def __setstate__(self, state):
def loads(self, state):
return None