Tools: remove trailing white spaces from output of generate_manifest
Explicitly set the seperators of the json.dumps call. Some versions of the library in combination with set indent parameter create output that contains quite a lot of trailing white spaces.
This commit is contained in:
parent
a1dcb8e3c1
commit
5e09553449
@ -478,7 +478,7 @@ class ManifestGenerator():
|
||||
file=sys.stderr)
|
||||
|
||||
structure = self.walk_directory(self.basedir)
|
||||
return json.dumps(structure, indent=4)
|
||||
return json.dumps(structure, indent=4, separators=(',', ': '))
|
||||
|
||||
|
||||
def usage():
|
||||
|
Loading…
Reference in New Issue
Block a user