1 files changed, 5 insertions, 7 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index bf039e5823..d3396922ae 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -285,8 +285,8 @@ class Config(object):
if not config_files:
config_parser.error(
"Must supply a config file.\nA config file can be automatically"
- " generated using \"--generate-config -H SERVER_NAME"
- " -c CONFIG-FILE\""
+ ' generated using "--generate-config -H SERVER_NAME'
+ ' -c CONFIG-FILE"'
)
(config_path,) = config_files
if not cls.path_exists(config_path):
@@ -314,9 +314,7 @@ class Config(object):
if not cls.path_exists(config_dir_path):
os.makedirs(config_dir_path)
with open(config_path, "w") as config_file:
- config_file.write(
- "# vim:ft=yaml\n\n"
- )
+ config_file.write("# vim:ft=yaml\n\n")
config_file.write(config_str)
config = yaml.safe_load(config_str)
@@ -353,8 +351,8 @@ class Config(object):
if not config_files:
config_parser.error(
"Must supply a config file.\nA config file can be automatically"
- " generated using \"--generate-config -H SERVER_NAME"
- " -c CONFIG-FILE\""
+ ' generated using "--generate-config -H SERVER_NAME'
+ ' -c CONFIG-FILE"'
)
obj.read_config_files(
|