gevent_test.py 文件源码

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

项目:easyblogger 作者: raghur 项目源码 文件源码
def convert(file, stdin, instanceid):
    if stdin:
        text = ""
        with open(file, 'r') as filehandle:
            text = filehandle.read()
        # this fails
        pypandoc.convert_text(text, "asciidoc",
                              format="html",
                              outputfile="%s.asciidoc" % instanceid)
    else:  # this works
        output = pypandoc.convert_file(file, "asciidoc",
                                       format="html")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号