summaryrefslogtreecommitdiff
path: root/demoscript/Ice/session.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/session.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/session.py')
-rw-r--r--demoscript/Ice/session.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/demoscript/Ice/session.py b/demoscript/Ice/session.py
index d43db35d312..f607db2dcde 100644
--- a/demoscript/Ice/session.py
+++ b/demoscript/Ice/session.py
@@ -9,15 +9,14 @@
# **********************************************************************
import sys
-from demoscript import *
-from scripts import Expect
+from demoscript import Util
def run(clientStr, server):
client = Util.spawn(clientStr)
client.expect('==>')
client.sendline('foo')
- print "testing session creation...",
+ sys.stdout.write("testing session creation... ")
sys.stdout.flush()
server.expect('The session foo is now created.')
client.sendline('c')
@@ -28,9 +27,9 @@ def run(clientStr, server):
client.sendline('x')
client.waitTestSuccess()
server.expect("The session foo is now destroyed.")
- print "ok"
+ print("ok")
- print "testing session cleanup...",
+ sys.stdout.write("testing session cleanup... ")
sys.stdout.flush()
client = Util.spawn(clientStr)
client.expect('==>')
@@ -40,7 +39,7 @@ def run(clientStr, server):
client.sendline('t')
client.waitTestSuccess()
server.expect("The session foo is now destroyed.\n.*The session foo has timed out.", timeout=25)
- print "ok"
+ print("ok")
client = Util.spawn(clientStr)
client.expect('==>')