def to_dict(path):
"""
Normalize each resource as a dictionary for smarter comparison.
Relies on link sorting performed by the pull script.
"""
with open(path) as file_:
return {
key: value
for dct in load_all(file_)
for key, value in dct.items()
}
评论列表
文章目录