Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Jul 18, 2024
1 parent 80573b1 commit 24356c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions meshed/slabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ def __init__(
self,
handle_exceptions: HandledExceptionsMapSpec = DFLT_INTERRUPT_EXCEPTIONS,
scope_factory: Callable[[], MutableMapping] = dict,
finally_handler: Callable[['Slabs'], None] = None,
**components,
):
_validate_components(components)
Expand All @@ -390,7 +389,6 @@ def __init__(
name: Sig.sig_or_default(func) for name, func in self.components.items()
}
self.context = ContextFanout(**components)
self.finally_handler = finally_handler

def _call_on_scope(self, scope: MutableMapping):
"""Calls the components 1 by 1, sourcing inputs and writing outputs in scope"""
Expand Down Expand Up @@ -424,12 +422,6 @@ def __iter__(self):
if handler_output is not do_not_break:
self.exit_value = handler_output # remember, in case useful
break
finally:
self._handle_finally()

def _handle_finally(self):
if self.finally_handler:
self.finally_handler(self)

def open(self):
self._output_of_context_enter = self.context.__enter__()
Expand Down

0 comments on commit 24356c6

Please sign in to comment.