summary refs log tree commit diff
path: root/synapse/app/synctl.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-03-08 11:08:20 +0000
committerMark Haines <mjark@negativecurvature.net>2016-03-08 11:08:20 +0000
commitea72bd960052f95599150a287a7fccbe668e2c23 (patch)
tree8ca401db42e800c7393fb3df3919bf754b918786 /synapse/app/synctl.py
parentMerge pull request #627 from matrix-org/dbkr/guest_reuse_send_user_id (diff)
parentUse syntax that works on both py2.7 and py3 (diff)
downloadsynapse-ea72bd960052f95599150a287a7fccbe668e2c23.tar.xz
Merge pull request #631 from matrix-org/markjh/py3v1
Use syntax that's valid on both py2.7 and py3
Diffstat (limited to 'synapse/app/synctl.py')
-rwxr-xr-xsynapse/app/synctl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/app/synctl.py b/synapse/app/synctl.py
index 9249e36d82..ab3a31d7b7 100755
--- a/synapse/app/synctl.py
+++ b/synapse/app/synctl.py
@@ -29,13 +29,13 @@ NORMAL = "\x1b[m"
 
 
 def start(configfile):
-    print "Starting ...",
+    print ("Starting ...")
     args = SYNAPSE
     args.extend(["--daemonize", "-c", configfile])
 
     try:
         subprocess.check_call(args)
-        print GREEN + "started" + NORMAL
+        print (GREEN + "started" + NORMAL)
     except subprocess.CalledProcessError as e:
         print (
             RED +
@@ -48,7 +48,7 @@ def stop(pidfile):
     if os.path.exists(pidfile):
         pid = int(open(pidfile).read())
         os.kill(pid, signal.SIGTERM)
-        print GREEN + "stopped" + NORMAL
+        print (GREEN + "stopped" + NORMAL)
 
 
 def main():