From 4e9219e219cd033ab84bef291909856bc3d86dfb 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 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)