From d1afd4b40d7a4430edcc59a5468f2d46c5151d50 Mon Sep 17 00:00:00 2001 From: Edward Caunt Date: Wed, 7 Jan 2026 14:52:08 +0000 Subject: [PATCH] misc: Scrap _rcls on Reconstructable since it's unused --- devito/tools/abc.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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)