Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __getstate__(self):
state = Persistent.__getstate__(self)
state['data'] = state['data'].items()
return state
def __getstate__(self):
state = Persistent.__getstate__(self)
state['data'] = list(state['data'].items())
return state