base.py 文件源码

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

项目:tuning-box 作者: openstack 项目源码 文件源码
def read_yaml(self):
        docs_gen = yaml.safe_load_all(self.app.stdin)
        doc = next(docs_gen)
        guard = object()
        if next(docs_gen, guard) is not guard:
            self.app.stderr.write("Warning: will use only first "
                                  "document from YAML stream")
        return doc
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号