Skip to content

Commit

Permalink
Merge pull request #26 from yola/fix-trailing-whitespace-in-output
Browse files Browse the repository at this point in the history
Generate config without trailing whitespace
  • Loading branch information
Henk Joubert committed Nov 7, 2014
2 parents e65ac18 + 05e7514 commit e775dd1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

0.4.5
-----

* Generated configuration.json no longer has trailing whitespace.

0.4.4
-----

Expand Down
2 changes: 1 addition & 1 deletion bin/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def main():
if not options.dry_run:
write_config(config, options.app_dir)
else:
json.dump(config, sys.stdout, indent=4)
json.dump(config, sys.stdout, indent=4, separators=(',', ': '))


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
author_email='[email protected]',
license='MIT (Expat)',
url='https://github.com/yola/yoconfigurator',
version='0.4.4',
version='0.4.5',
packages=find_packages(),
scripts=['bin/configurator.py'],
install_requires=install_requires,
Expand Down
2 changes: 1 addition & 1 deletion yoconfigurator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def default(self, obj):
def write_config(config, app_dir):
path = os.path.join(app_dir, 'configuration.json')
with open(path, 'w') as f:
json.dump(config, f, indent=4, cls=DetectMissingEncoder)
json.dump(config, f, indent=4, cls=DetectMissingEncoder, separators=(',', ': '))


def read_config(app_dir):
Expand Down

0 comments on commit e775dd1

Please sign in to comment.