summaryrefslogtreecommitdiff
path: root/demoscript/IceBox/hello.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/IceBox/hello.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/IceBox/hello.py')
-rwxr-xr-xdemoscript/IceBox/hello.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/demoscript/IceBox/hello.py b/demoscript/IceBox/hello.py
index 8c64f9c0200..6f941be8e5c 100755
--- a/demoscript/IceBox/hello.py
+++ b/demoscript/IceBox/hello.py
@@ -9,25 +9,25 @@
# **********************************************************************
import sys, demoscript
-from scripts import Expect
+import Expect
def runtests(client, server, secure):
- print "testing twoway",
+ sys.stdout.write("testing twoway ")
sys.stdout.flush()
client.sendline('t')
server.expect('Hello World!')
- print "oneway",
+ sys.stdout.write("oneway ")
sys.stdout.flush()
client.sendline('o')
server.expect('Hello World!')
if not secure:
- print "datagram",
+ sys.stdout.write("datagram ")
sys.stdout.flush()
client.sendline('d')
server.expect('Hello World!')
- print "... ok"
+ print("... ok")
- print "testing batch oneway",
+ sys.stdout.write("testing batch oneway ")
sys.stdout.flush()
client.sendline('O')
try:
@@ -39,7 +39,7 @@ def runtests(client, server, secure):
server.expect('Hello World!')
server.expect('Hello World!')
if not secure:
- print "datagram",
+ sys.stdout.write("datagram ")
sys.stdout.flush()
client.sendline('D')
try:
@@ -50,13 +50,13 @@ def runtests(client, server, secure):
client.sendline('f')
server.expect('Hello World!')
server.expect('Hello World!')
- print "... ok"
+ print("... ok")
def run(client, server):
runtests(client, server, False)
if not demoscript.Util.isMono():
- print "repeating tests with SSL"
+ print("repeating tests with SSL")
client.sendline('S')