summaryrefslogtreecommitdiff
path: root/demoscript/Freeze/phonebook.py
diff options
context:
space:
mode:
Diffstat (limited to 'demoscript/Freeze/phonebook.py')
-rwxr-xr-xdemoscript/Freeze/phonebook.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/demoscript/Freeze/phonebook.py b/demoscript/Freeze/phonebook.py
index 4a5148903f0..de17c0bd504 100755
--- a/demoscript/Freeze/phonebook.py
+++ b/demoscript/Freeze/phonebook.py
@@ -9,7 +9,7 @@
# **********************************************************************
import sys
-from scripts import Expect
+import Expect
def dequote(s):
cur = 0
@@ -38,7 +38,7 @@ def mkregexp(s):
return s
def run(client, server):
- print "populating database... ",
+ sys.stdout.write("populating database... ")
sys.stdout.flush()
f = open("contacts", "r")
for l in f:
@@ -52,9 +52,9 @@ def run(client, server):
client.expect('\n', timeout=1)
except Expect.TIMEOUT:
pass
- print "ok"
+ print("ok")
- print "testing...",
+ sys.stdout.write("testing... ")
sys.stdout.flush()
client.sendline('find "Doe, John"')
client.expect('number of contacts found: 3')
@@ -95,4 +95,4 @@ def run(client, server):
client.sendline('exit')
client.waitTestSuccess()
- print "ok"
+ print("ok")