def finish_shutdown(self, waittime=1, pollinterval=0.1):
        """Wait for kernel shutdown, then kill process if it doesn't shutdown.

        This does not send shutdown requests - use :meth:`request_shutdown`
        first.
        """
        for i in range(int(pollinterval/waittime)):
            if self.is_alive():
                time.sleep(pollinterval)
            else:
                break
        else:
            # OK, we've waited long enough.
            if self.has_kernel:
                self._kill_kernel()
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/manager.py/KernelManager.finish_shutdown/swapped operands of `/`