diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2017-11-28 06:35:31 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-20 22:31:56 +0000 |
commit | 86e002572d53cf2e60196269928a411375d24294 (patch) | |
tree | e29cf4095bb8b9e6351f01e49de849eae6440066 | |
parent | 8d94b9db221d1def42f091b991903faa2d1651ce (diff) | |
download | poky-86e002572d53cf2e60196269928a411375d24294.tar.gz |
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>
-rw-r--r-- | meta/recipes-devtools/python/python/create_manifest2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python/create_manifest2.py b/meta/recipes-devtools/python/python/create_manifest2.py index bd64ec3ee7..e7450452ba 100644 --- a/meta/recipes-devtools/python/python/create_manifest2.py +++ b/meta/recipes-devtools/python/python/create_manifest2.py | |||
@@ -274,4 +274,4 @@ for key in new_manifest: | |||
274 | 274 | ||
275 | # Create the manifest from the data structure that was built | 275 | # Create the manifest from the data structure that was built |
276 | with open('python2-manifest.json.new','w') as outfile: | 276 | with open('python2-manifest.json.new','w') as outfile: |
277 | json.dump(new_manifest,outfile,sort_keys=True, indent=4) | 277 | json.dump(new_manifest,outfile,sort_keys=True, indent=4, separators=(',', ': ')) |