diff --git a/devito/tools/abc.py b/devito/tools/abc.py index 1b92533f5c..2e489ac3c0 100644 --- a/devito/tools/abc.py +++ b/devito/tools/abc.py @@ -146,13 +146,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): @@ -218,10 +212,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)