示例#1
0
 def __getstate__(self):
     # unwrap weakref for pickling
     self._client = common.unwrapWeakref(self._client)
     return SlottedObjectMixin.__getstate__(self)
示例#2
0
 def __setstate__(self, state):
     SlottedObjectMixin.__setstate__(self, state)
     self._client = common.wrapWeakref(self._client)
示例#3
0
文件: volume.py 项目: tisttsf/music21
 def __getstate__(self):
     self._client = common.unwrapWeakref(self._client)
     return SlottedObjectMixin.__getstate__(self)