def block(self):
        """While this context manager is active any signals for aborting
        the process will be queued and exit the program once the context
        is left.
        """

        self._nosig = True
        yield
        self._nosig = False
        if self._interrupted:
            raise SystemExit("Aborted...")
def block ( self ) : self . _nosig = True yield self . _nosig = False if self . _interrupted : raise SystemExit ( "Aborted..." )
While this context manager is active any signals for aborting
        the process will be queued and exit the program once the context
        is left.