aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2015-05-16 18:43:53 +0000
committerBen McGinnes <[email protected]>2015-05-16 18:43:53 +0000
commit40290507bcdc63ab9023393d071167d455d70737 (patch)
tree1a5479a529437ff2b5ecd14000988660e54bd910
parentMore byte changes and passphrase changes (diff)
downloadgpgme-40290507bcdc63ab9023393d071167d455d70737.tar.gz
gpgme-40290507bcdc63ab9023393d071167d455d70737.zip
Strings vs. Bytes
* CLI input must be byte encoded.
-rw-r--r--lang/py3-pyme/examples/inter-edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/py3-pyme/examples/inter-edit.py b/lang/py3-pyme/examples/inter-edit.py
index 088b2921..f97232b7 100644
--- a/lang/py3-pyme/examples/inter-edit.py
+++ b/lang/py3-pyme/examples/inter-edit.py
@@ -48,7 +48,7 @@ if len(sys.argv) != 2:
else:
c = Context()
out = Data()
- c.op_keylist_start(sys.argv[1], 0)
+ c.op_keylist_start(sys.argv[1].encode('utf-8'), 0)
key = c.op_keylist_next()
helper = {"skip": 0, "data": out}
c.op_edit(key, edit_fnc, helper, out)