articles.py 文件源码

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

项目:pilot-elife 作者: frictionlessdata 项目源码 文件源码
def _get_files_tree_api(repo_api, sha):
    """Get repo file paths using GitHub Tree API.
    """
    files = []
    # https://github.com/sigmavirus24/github3.py/issues/656
    tree = repo_api.tree('%s?recursive=1' % sha).to_json()
    if tree['truncated']:
        return None
    for item in tree['tree']:
        if item['type'] == 'blob':
            files.append(item['path'])
    return files
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号