fix versions sorting

This commit is contained in:
lilydjwg 2020-10-06 10:18:21 +08:00
parent 71612ad9b8
commit 926e75c075
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ def read_verfile(file: Path) -> VersData:
def write_verfile(file: Path, versions: VersData) -> None: def write_verfile(file: Path, versions: VersData) -> None:
# sort and indent to make it friendly to human and git # sort and indent to make it friendly to human and git
data = json.dumps( data = json.dumps(
dict(sorted(versions)), dict(sorted(versions.items())),
indent=2, indent=2,
ensure_ascii=False, ensure_ascii=False,
) + '\n' ) + '\n'