web.py 文件源码

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

项目:dac 作者: jlonij 项目源码 文件源码
def info():
    '''
    Return service information.
    '''
    try:
        test_report_stamp = time.ctime(os.path.getctime(DOCTEST_OUTPUT))
    except:
        test_report_stamp = ''

    try:
        with open('/tmp/dac_test_results') as fh:
            test_report = fh.read()
    except:
        test_report = ''

    resp = {'sums': mk_md5sums(),
            'test_errors': test_errors(),
            'test_report': test_report,
            'test_report_stamp': test_report_stamp,
            'stats': stats}

    response.set_header('Content-Type', 'application/json')
    return resp
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号