Expect.py 文件源码

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

项目:lib9 作者: Jumpscale 项目源码 文件源码
def send(self, input):
            if not self.stdin:
                return None
            try:
                x = msvcrt.get_osfhandle(self.stdin.fileno())
                (errCode, written) = WriteFile(x, input)
            except ValueError:
                print("close stdin")
                return self._close('stdin')
            except (subprocess.pywintypes.error, Exception) as why:
                if why[0] in (109, errno.ESHUTDOWN):
                    print("close stdin")
                    return self._close('stdin')
                raise
            return written
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号