Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions devito/tools/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down
Loading