summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-09 23:44:41 +0100
committerGitHub <noreply@github.com>2018-04-09 23:44:41 +0100
commit0e9aa1d09199c8a822c3a6562e6c46e3ac844cac (patch)
tree42fa74e3e5f3573064fdcd5cb82d61fd235a4e1e
parentMerge pull request #3075 from NotAFile/six-type-checks (diff)
parentuse python3-compatible prints (diff)
downloadsynapse-0e9aa1d09199c8a822c3a6562e6c46e3ac844cac.tar.xz
Merge pull request #3074 from NotAFile/fix-py3-prints
use python3-compatible prints
-rw-r--r--synapse/config/_base.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/config/_base.py b/synapse/config/_base.py
index f79bd3dfc7..32b439d20a 100644
--- a/synapse/config/_base.py
+++ b/synapse/config/_base.py
@@ -290,22 +290,22 @@ class Config(object):
                     )
                     obj.invoke_all("generate_files", config)
                     config_file.write(config_bytes)
-                print (
+                print((
                     "A config file has been generated in %r for server name"
                     " %r with corresponding SSL keys and self-signed"
                     " certificates. Please review this file and customise it"
                     " to your needs."
-                ) % (config_path, server_name)
-                print (
+                ) % (config_path, server_name))
+                print(
                     "If this server name is incorrect, you will need to"
                     " regenerate the SSL certificates"
                 )
                 return
             else:
-                print (
+                print((
                     "Config file %r already exists. Generating any missing key"
                     " files."
-                ) % (config_path,)
+                ) % (config_path,))
                 generate_keys = True
 
         parser = argparse.ArgumentParser(