diff options
author | chriseth <chris@ethereum.org> | 2018-04-19 22:10:57 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-19 23:21:34 +0800 |
commit | a79c9a1dfebf08c3ab5bd6a56f72f3e84ba1ecef (patch) | |
tree | 1142f3fde31d1bdb794efb81b730fd8cfbf60641 /scripts | |
parent | 2546a274ca4ea8cae221945a88f2f069c09180b0 (diff) | |
download | dexon-solidity-a79c9a1dfebf08c3ab5bd6a56f72f3e84ba1ecef.tar.gz dexon-solidity-a79c9a1dfebf08c3ab5bd6a56f72f3e84ba1ecef.tar.zst dexon-solidity-a79c9a1dfebf08c3ab5bd6a56f72f3e84ba1ecef.zip |
Prepare 0.4.23 release.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update_bugs_by_version.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |