summaryrefslogtreecommitdiff
path: root/demoscript/Ice/throughput.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-04-24 14:16:15 -0700
committerMark Spruiell <mes@zeroc.com>2012-04-24 14:16:15 -0700
commit943a48fc5c0a59b892eb746073c71b8dd88815e7 (patch)
tree421cfedbc60603d02e0b314d9204e9f85dd781c5 /demoscript/Ice/throughput.py
parentminor fix to IcePHP getLogger (diff)
downloadice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.bz2
ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.xz
ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.zip
python 3 support
Diffstat (limited to 'demoscript/Ice/throughput.py')
-rw-r--r--demoscript/Ice/throughput.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/demoscript/Ice/throughput.py b/demoscript/Ice/throughput.py
index 4f1c14edd23..09dfdd943c7 100644
--- a/demoscript/Ice/throughput.py
+++ b/demoscript/Ice/throughput.py
@@ -9,43 +9,42 @@
# **********************************************************************
import sys
-from demoscript import *
-from scripts import Expect
+from demoscript import Util
def runseries(client):
client.expect('==> ', timeout=240)
client.sendline('t')
client.expect('==> ', timeout=2000)
- print "twoway: %s " % (client.before)
+ print("twoway: %s " % (client.before))
if not Util.fast:
client.sendline('o')
client.expect('==> ', timeout=2000)
- print "oneway: %s " % (client.before)
+ print("oneway: %s " % (client.before))
client.sendline('r')
client.expect('==> ', timeout=2000)
- print "receive: %s" % (client.before)
+ print("receive: %s" % (client.before))
client.sendline('e')
client.expect('==> ', timeout=2000)
- print "echo: %s" % (client.before)
+ print("echo: %s" % (client.before))
def run(client, server):
- print "testing bytes"
+ print("testing bytes")
runseries(client)
- print "testing strings"
+ print("testing strings")
client.sendline('2')
runseries(client)
- print "testing structs with string... "
+ print("testing structs with string")
client.sendline('3')
runseries(client)
- print "testing structs with two ints and double... "
+ print("testing structs with two ints and double")
client.sendline('4')
runseries(client)