summaryrefslogtreecommitdiff
path: root/py/test/Ice/blobject/Client.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 /py/test/Ice/blobject/Client.py
parentminor fix to IcePHP getLogger (diff)
downloadice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.bz2
ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.xz
ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.zip
python 3 support
Diffstat (limited to 'py/test/Ice/blobject/Client.py')
-rwxr-xr-xpy/test/Ice/blobject/Client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/test/Ice/blobject/Client.py b/py/test/Ice/blobject/Client.py
index 24829f54511..14dd311f16b 100755
--- a/py/test/Ice/blobject/Client.py
+++ b/py/test/Ice/blobject/Client.py
@@ -40,7 +40,7 @@ def run(args, communicator, sync):
try:
Test.HelloPrx.checkedCast(communicator.stringToProxy("missing:default -p 12000 -t 10000"))
test(False)
- except Ice.UnknownLocalException, e:
+ except Ice.UnknownLocalException as e:
test(e.unknown.find('ConnectionRefusedException'))
if sync:
hello.shutdown()
@@ -54,10 +54,10 @@ try:
initData.properties.setProperty('Ice.Warn.Dispatch', '0')
communicator = Ice.initialize(argv, initData)
router = RouterI.RouterI(communicator, False)
- print "testing async blobject...",
+ sys.stdout.write("testing async blobject... ")
sys.stdout.flush()
status = run(sys.argv, communicator, False)
- print "ok"
+ print("ok")
router.destroy()
except:
traceback.print_exc()
@@ -77,10 +77,10 @@ if status:
initData.properties.setProperty('Ice.Warn.Dispatch', '0')
communicator = Ice.initialize(sys.argv, initData)
router = RouterI.RouterI(communicator, True)
- print "testing sync blobject...",
+ sys.stdout.write("testing sync blobject... ")
sys.stdout.flush()
status = run(sys.argv, communicator, True)
- print "ok"
+ print("ok")
router.destroy()
except:
traceback.print_exc()