aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python')
-rwxr-xr-xlang/python/examples/simple.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/examples/simple.py b/lang/python/examples/simple.py
index 5693d40a..739291ed 100755
--- a/lang/python/examples/simple.py
+++ b/lang/python/examples/simple.py
@@ -36,8 +36,9 @@ c.set_armor(1)
# Set up the recipients.
sys.stdout.write("Enter name of your recipient: ")
+sys.stdout.flush()
name = sys.stdin.readline().strip()
-c.op_keylist_start(name, 0)
+c.op_keylist_start(name.encode(), 0)
r = c.op_keylist_next()
if r == None: