def __getstate__(self): # unwrap weakref for pickling self._client = common.unwrapWeakref(self._client) return SlottedObjectMixin.__getstate__(self)
def __setstate__(self, state): SlottedObjectMixin.__setstate__(self, state) self._client = common.wrapWeakref(self._client)
def __getstate__(self): self._client = common.unwrapWeakref(self._client) return SlottedObjectMixin.__getstate__(self)