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/async.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/async.py')
-rw-r--r-- | demoscript/Ice/async.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/demoscript/Ice/async.py b/demoscript/Ice/async.py index cf779aa04f4..8b98d0eea21 100644 --- a/demoscript/Ice/async.py +++ b/demoscript/Ice/async.py @@ -9,11 +9,10 @@ # ********************************************************************** import sys -from demoscript import * -from scripts import Expect +import Expect def run(client, server): - print "testing client... ", + sys.stdout.write("testing client... ") sys.stdout.flush() client.sendline('i') server.expect('Hello World!') @@ -25,9 +24,9 @@ def run(client, server): client.sendline('i') server.expect('Hello World!') server.expect('Hello World!') - print "ok" + print("ok") - print "testing shutdown... ", + sys.stdout.write("testing shutdown... ") sys.stdout.flush() client.sendline('d') client.sendline('s') @@ -36,4 +35,4 @@ def run(client, server): client.expect('RequestCanceledException') client.sendline('x') client.waitTestSuccess() - print "ok" + print("ok") |