@contextlib.contextmanager<EOL><INDENT>def _triggering_ctx(self):<DEDENT>
if self._is_triggering:<EOL><INDENT>raise RuntimeError('<STR_LIT>'.format(self))<EOL><DEDENT>self._is_triggering = True<EOL>try:<EOL><INDENT>yield self<EOL><DEDENT>finally:<EOL><INDENT>self._is_triggering = False<EOL><DEDENT>
Context manager that ensures that a hook is not re-triggered by one of its handlers.