Commit 60406edd authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Fixed state pickling in the python API.

parent 1486a99d
......@@ -77,8 +77,10 @@ class State(_object):
return serializationString
def __setstate__(self, serializationString):
state = XmlSerializer.deserializeState(serializationString)
self.this = state.this
print 'calling set state'
dState = XmlSerializer.deserializeState(serializationString)
# Safe provided no __slots__ or other weird things are used
self.__dict__.update(dState.__dict__)
def getTime(self):
"""Get the time for which this State was created."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment