pypet/utils/mpwrappers.py
def finalize(self):
        """Closes socket and terminates context

        NO-OP if already closed.

        """
        if self._context is not None:
            if self._socket is not None:
                self._close_socket(confused=False)
            self._context.term()
            self._context = None
            self._poll = None
def finalize(self):
        """Closes socket and terminates context

        NO-OP if already closed.

        """
        if self._context is not None:
            if self._socket is not None:
                self._close_socket(confused=False)
            self._context.term()
            self._context = None
            self._poll = None
def finalize ( self ) : if self . _context is not None : if self . _socket is not None : self . _close_socket ( confused = False ) self . _context . term ( ) self . _context = None self . _poll = None
Closes socket and terminates context

        NO-OP if already closed.
Closes socket and terminates context