summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/bench/expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Freeze/bench/expect.py')
-rwxr-xr-xcpp/demo/Freeze/bench/expect.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/demo/Freeze/bench/expect.py b/cpp/demo/Freeze/bench/expect.py
index b9747ec0818..10d3b2d99ed 100755
--- a/cpp/demo/Freeze/bench/expect.py
+++ b/cpp/demo/Freeze/bench/expect.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# **********************************************************************
#
-# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
+# Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
@@ -16,16 +16,16 @@ if len(head) > 0:
path = [os.path.join(head, p) for p in path]
path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "demoscript")) ]
if len(path) == 0:
- raise "can't find toplevel directory!"
+ raise RuntimeError("can't find toplevel directory!")
sys.path.append(path[0])
-from demoscript import *
+from demoscript import Util
from demoscript.Freeze import bench
-print "cleaning databases...",
+sys.stdout.write("cleaning databases... ")
sys.stdout.flush()
Util.cleanDbDir("db")
-print "ok"
+print("ok")
client = Util.spawn('./client')
bench.run(client)