From a79c9a1dfebf08c3ab5bd6a56f72f3e84ba1ecef Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 19 Apr 2018 16:10:57 +0200 Subject: Prepare 0.4.23 release. --- scripts/update_bugs_by_version.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/update_bugs_by_version.py b/scripts/update_bugs_by_version.py index c4bc0c9b..cbedf1a5 100755 --- a/scripts/update_bugs_by_version.py +++ b/scripts/update_bugs_by_version.py @@ -35,9 +35,9 @@ for v in versions: continue versions[v]['bugs'] += [bug['name']] -with open(path + '/../docs/bugs_by_version.json', 'r+') as bugs_by_version: +new_contents = json.dumps(versions, sort_keys=True, indent=4) +with open(path + '/../docs/bugs_by_version.json', 'r') as bugs_by_version: old_contents = bugs_by_version.read() - new_contents = json.dumps(versions, sort_keys=True, indent=4) - bugs_by_version.seek(0) +with open(path + '/../docs/bugs_by_version.json', 'w') as bugs_by_version: bugs_by_version.write(new_contents) - sys.exit(old_contents != new_contents) \ No newline at end of file +sys.exit(old_contents != new_contents) -- cgit v1.2.3