updatableProcess.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:wifimitm 作者: mvondracek 项目源码 文件源码
def __exit__(self, exc_type, exc_val, exc_tb):
        """
        Stop the process and then do cleanup.
        :param exc_type: Exception type
        :param exc_val: Exception value
        :param exc_tb: Exception traceback information
        """
        self.stop()
        # "...on exit, standard file descriptors are closed, and the process is waited for."
        # `subprocess — Subprocess management <https://docs.python.org/3/library/subprocess.html#subprocess.Popen>`_
        super().__exit__(exc_type, exc_val, exc_tb)
        self.update()
        # close files used for feedback
        self.cleanup()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号