diff --git a/nvchecker/core.py b/nvchecker/core.py index 3f93989..d40a1e8 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -134,7 +134,7 @@ def read_verfile(file: Path) -> VersData: def write_verfile(file: Path, versions: VersData) -> None: # sort and indent to make it friendly to human and git data = json.dumps( - dict(sorted(versions)), + dict(sorted(versions.items())), indent=2, ensure_ascii=False, ) + '\n'