summary refs log tree commit diff
path: root/synapse/config/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-03 19:47:32 +0100
committerErik Johnston <erik@matrix.org>2014-09-03 19:47:32 +0100
commit0538a4098d797eaa901c168e3a76df2ac94da2ed (patch)
treebc1ef822fdb3184daf6d39a2ab4da1afb6370dd9 /synapse/config/_base.py
parentAdd database upgrade script (diff)
parentBump versions. Update change logs. (diff)
downloadsynapse-0538a4098d797eaa901c168e3a76df2ac94da2ed.tar.xz
Merge branch 'release-v0.2.1' v0.2.1
Diffstat (limited to 'synapse/config/_base.py')
-rw-r--r--synapse/config/_base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py

index 1913179c3a..35bcece2c0 100644 --- a/synapse/config/_base.py +++ b/synapse/config/_base.py
@@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2014 matrix.org +# Copyright 2014 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - -import ConfigParser as configparser import argparse import sys import os @@ -121,6 +119,9 @@ class Config(object): and value is not None): config[key] = value with open(config_args.config_path, "w") as config_file: + # TODO(paul) it would be lovely if we wrote out vim- and emacs- + # style mode markers into the file, to hint to people that + # this is a YAML file. yaml.dump(config, config_file, default_flow_style=False) sys.exit(0)