Skip to content

Commit

Permalink
Variable: Do not pickle master attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
astaric committed Oct 10, 2017
1 parent 01f9aec commit 2883f1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/data/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ def __reduce__(self):
if not self.name:
raise PickleError("Variables without names cannot be pickled")

return make_variable, (self.__class__, self._compute_value, self.name), self.__dict__
__dict__ = dict(self.__dict__)
__dict__.pop("master", None)
return make_variable, (self.__class__, self._compute_value, self.name), __dict__

def copy(self, compute_value):
var = type(self)(self.name, compute_value=compute_value)
Expand Down

0 comments on commit 2883f1a

Please sign in to comment.