Skip to content
Snippets Groups Projects
Commit 8a648f67 authored by Matt Wala's avatar Matt Wala
Browse files

Fix pickleability in Py2.

parent 500e4896
No related branches found
No related tags found
No related merge requests found
......@@ -348,8 +348,6 @@ class _PickledObjectWrapper(object):
A class meant to wrap a pickled value (for :class:`LazilyUnpicklingDictionary`).
"""
__slots__ = ["objstring"]
@classmethod
def from_object(cls, obj):
if isinstance(obj, cls):
......@@ -364,6 +362,9 @@ class _PickledObjectWrapper(object):
from pickle import loads
return loads(self.objstring)
def __getstate__(self):
return {"objstring": self.objstring}
import collections
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment