check.py 文件源码

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

项目:labnote 作者: phragment 项目源码 文件源码
def rst2dtree(rst):

    err = io.StringIO()
    with contextlib.redirect_stderr(err):
        try:
            dtree = docutils.core.publish_doctree(rst)
        except docutils.utils.SystemMessage as e:
            dtree = None
            print("parsing failed", e)
    return err.getvalue(), dtree
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号