Commit 9263c0f9 authored by Vincent Pelletier's avatar Vincent Pelletier

Empty class state before setting it.

See Zope 2.11 DateTime.__setstate__ (also present in 2.12).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af042145
......@@ -35,6 +35,7 @@ SyntaxError, DateError, TimeError, localtime, time
STATE_KEY = 'str'
def DateTime__setstate__(self, state):
self.__dict__.clear()
if isinstance(state, tuple):
t, tz = state
ms = (t - math.floor(t))
......
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