summaryrefslogtreecommitdiff
path: root/test-wait-for-port
diff options
context:
space:
mode:
Diffstat (limited to 'test-wait-for-port')
-rwxr-xr-xtest-wait-for-port6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-wait-for-port b/test-wait-for-port
index 22e07be..9f6a726 100755
--- a/test-wait-for-port
+++ b/test-wait-for-port
@@ -1,6 +1,6 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
-# Copyright (C) 2014 Codethink Limited
+# Copyright (C) 2014-2019 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ host = sys.argv[1]
port = int(sys.argv[2])
while True:
- print "Trying %s port %s" % (host, port)
+ print("Trying %s port %s" % (host, port))
s = socket.socket()
try:
s.connect((host, port))