diff --git a/server/tools/scripts/ci/wsproxy/manage.py b/server/tools/scripts/ci/wsproxy/manage.py index 4dd49ca..3d14ffa 100755 --- a/server/tools/scripts/ci/wsproxy/manage.py +++ b/server/tools/scripts/ci/wsproxy/manage.py @@ -43,7 +43,7 @@ def listserver(): for pid in pids: exepath = getExePath(pid) cmdline = getExeCmdLine(pid) - print pid, exepath, cmdline + print(pid, exepath, cmdline) def restartServer(str_instance_ids): instance_ids = str_instance_ids.split(',') @@ -51,13 +51,13 @@ def restartServer(str_instance_ids): instance_id = int(instance_id) stop(instance_id) time.sleep(0.5) - print 'wsproxy %d starting......' % instance_id + print('wsproxy %d starting......' % instance_id) cmd = 'sh start_instance.sh %d' % (instance_id) os.popen(cmd) time.sleep(0.5) def printHelp(): - print 'usuage: [restart]' + print('usuage: [restart]') def main(argv): if len(argv) == 1: