Skip to content

Commit 9298045

Browse files
committed
Avoid creating a whitespace at the end of the manifest.json file
1 parent c8d258f commit 9298045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/setversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
f.close()
1515
manifest['version'] = `t.year` +'.'+ `t.month` +'.'+ `t.day`
1616
f = open('chromium/manifest.json','w')
17-
f.write(json.dumps(manifest,indent=4,sort_keys=True))
17+
f.write(json.dumps(manifest,indent=4,sort_keys=True,separators=(',', ': ')))
1818

1919
def replace_in_file(from_re, to, filename):
2020
contents = open(filename).read()

0 commit comments

Comments
 (0)