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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Freeze/bench/expect.py b/cpp/demo/Freeze/bench/expect.py
index b9747ec0818..ec03365ba29 100755
--- a/cpp/demo/Freeze/bench/expect.py
+++ b/cpp/demo/Freeze/bench/expect.py
@@ -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)