def main():
# pylint: disable=I0011,C0111
args = parse_args()
parsed_project_index = sorted(
json.JSONDecoder(
object_pairs_hook=collections.OrderedDict
).decode(open(args.project_index).read()),
key=lambda repo: repo['path']
)
json_string = strip_trailing_whitespace(
json.dumps(parsed_project_index, sort_keys=False, indent=2)
)
open(args.project_index, 'w').write(json_string)
return 0
format_projects_list.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录