psjson.py 文件源码

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

项目:pscheduler 作者: perfsonar 项目源码 文件源码
def emit_text(self, text):
        """Emit straight text to the file"""

        if self.timeout is not None:
            if select.select([],[self.handle],[], self.timeout) == ([],[],[]):
                raise IOError("Timed out waiting for write")

        self.handle.write(
            "\x1e%s\n" % (text.translate(string.maketrans('', ''), "\n"))
        )
        self.handle.flush()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号