diff options
Diffstat (limited to 'py/demo/Ice/latency/Client.py')
-rwxr-xr-x | py/demo/Ice/latency/Client.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/py/demo/Ice/latency/Client.py b/py/demo/Ice/latency/Client.py index 35201fcffd4..6cdc4a69234 100755 --- a/py/demo/Ice/latency/Client.py +++ b/py/demo/Ice/latency/Client.py @@ -16,19 +16,19 @@ import Demo class Client(Ice.Application): def run(self, args): if len(args) > 1: - print self.appName() + ": too many arguments" + print(self.appName() + ": too many arguments") return 1 ping = Demo.PingPrx.checkedCast(self.communicator().propertyToProxy('Ping.Proxy')) if not ping: - print "invalid proxy" + print("invalid proxy") return 1 # Initial ping to setup the connection. ping.ice_ping(); repetitions = 100000 - print "pinging server " + str(repetitions) + " times (this may take a while)" + print("pinging server " + str(repetitions) + " times (this may take a while)") tsec = time.time() @@ -40,8 +40,8 @@ class Client(Ice.Application): tsec = time.time() - tsec tmsec = tsec * 1000.0 - print "time for %d pings: %.3fms" % (repetitions, tmsec) - print "time per ping: %.3fms" % (tmsec / repetitions) + print("time for %d pings: %.3fms" % (repetitions, tmsec)) + print("time per ping: %.3fms" % (tmsec / repetitions)) return 0 |