]> code.ossystems Code Review - openembedded-core.git/commit
python2 create_manifest.py: fix trailing whitespace in json
authorTim Orling <timothy.t.orling@linux.intel.com>
Tue, 28 Nov 2017 14:35:31 +0000 (06:35 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Jan 2018 22:31:10 +0000 (22:31 +0000)
commite4cc287e41af2e52240a20d4bf2b6cc0f1f85314
tree040c45213e4ebbfa9eaf43fbc95863a0141cecce
parent6959e2e4dba5bbfa6ffd49c44e738cc1c38bc280
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

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python/create_manifest2.py