setup.py 文件源码

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

项目:tumdlr 作者: FujiMakoto 项目源码 文件源码
def read_md(file):
    try:
        # noinspection PyPackageRequirements,PyUnresolvedReferences
        from pypandoc import convert

        return convert(file, 'rst', 'md')
    except ImportError:
        import warnings
        warnings.warn('pypandoc module not found, could not convert Markdown to RST')

        with open(file, 'r') as md:
            return md.read()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号