mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 01:06:37 +01:00
python2 create_manifest.py: fix trailing whitespace in json
The json.dumps function adds trailing whitespace when using
indent, because the default separator is not ','.
The workaround [1] is to set the separators to be ',' and ': ',
e.g. separators=(',', ': ')
[1] https://hg.python.org/cpython/rev/78bad589f205
(From OE-Core rev: e4cc287e41af2e52240a20d4bf2b6cc0f1f85314)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8d94b9db22
commit
86e002572d
@@ -274,4 +274,4 @@ for key in new_manifest:
|
||||
|
||||
# Create the manifest from the data structure that was built
|
||||
with open('python2-manifest.json.new','w') as outfile:
|
||||
json.dump(new_manifest,outfile,sort_keys=True, indent=4)
|
||||
json.dump(new_manifest,outfile,sort_keys=True, indent=4, separators=(',', ': '))
|
||||
|
||||
Reference in New Issue
Block a user