Commit 14ee2989 authored by Tres Seaver's avatar Tres Seaver

Omitted upgrade for state dicts w/o '_micros'.

parent c6336db5
...@@ -356,6 +356,8 @@ class DateTime: ...@@ -356,6 +356,8 @@ class DateTime:
def __setstate__(self, state): def __setstate__(self, state):
self.__dict__.clear() # why doesn't Python's unpickler do this? self.__dict__.clear() # why doesn't Python's unpickler do this?
self.__dict__.update(state) self.__dict__.update(state)
if '_micros' not in state:
self._micros = self._upgrade_old()
def _parse_args(self, *args, **kw): def _parse_args(self, *args, **kw):
"""Return a new date-time object. """Return a new date-time object.
......
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