diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
commit | 943a48fc5c0a59b892eb746073c71b8dd88815e7 (patch) | |
tree | 421cfedbc60603d02e0b314d9204e9f85dd781c5 /demoscript/Ice/throughput.py | |
parent | minor fix to IcePHP getLogger (diff) | |
download | ice-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.py | 19 |
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) |