diff --git a/devito/tools/abc.py b/devito/tools/abc.py index 162b3287d3..d83e4835bc 100644 --- a/devito/tools/abc.py +++ b/devito/tools/abc.py @@ -151,13 +151,7 @@ def __init__(self, a, b, c=4): except AttributeError: pass - # Should we use a custom reconstructor? - try: - cls = self._rcls - except AttributeError: - cls = self.__class__ - - return cls(*args, **kwargs) + return self.__class__(*args, **kwargs) class Pickable(Reconstructable): @@ -223,10 +217,7 @@ def _pickle_reconstructor(self): except AttributeError: pass - try: - return self._rcls - except AttributeError: - return None + return None def __reduce_ex__(self, proto): ret = object.__reduce_ex__(self, proto)