# HG changeset patch # User Jeff Hammel # Date 1335561184 25200 # Node ID 9286543737559d5ceeaf543746bb484af113e1bd # Parent 6067ae61cd173bf8018de83804cdedbee100505a change default flow style for yaml, http://pyyaml.org/wiki/PyYAMLDocumentation diff -r 6067ae61cd17 -r 928654373755 configuration/configuration.py --- a/configuration/configuration.py Fri Apr 27 13:57:21 2012 -0700 +++ b/configuration/configuration.py Fri Apr 27 14:13:04 2012 -0700 @@ -88,13 +88,14 @@ if yaml: class YAML(ConfigurationProvider): extensions = ['yml', 'yaml'] + dump_args = {'default_flow_style': False} def read(self, filename): f = file(filename) config = yaml.load(f) f.close() return config def _write(self, fp, config): - fp.write(yaml.dump(config)) + fp.write(yaml.dump(config, **self.dump_args)) # TODO: could use templates to get order down, etc configuration_providers.append(YAML())