aboutsummaryrefslogtreecommitdiffstats
path: root/lang/py3-pyme/examples/signverify.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2015-05-16 19:07:12 +0000
committerBen McGinnes <[email protected]>2015-05-16 19:07:12 +0000
commitc39cea7a07cec9ab34cd2026f47b6fba80fea3c8 (patch)
tree904d65a0b28187cc4826a0e139562ff57133952b /lang/py3-pyme/examples/signverify.py
parentNo change, note added to explain why. (diff)
downloadgpgme-c39cea7a07cec9ab34cd2026f47b6fba80fea3c8.tar.gz
gpgme-c39cea7a07cec9ab34cd2026f47b6fba80fea3c8.zip
Byte encoding
* More string updates. * verifydetails.py still fails, but as Bernhard is still contactable, it might be worth him checking on it instead.
Diffstat (limited to '')
-rwxr-xr-xlang/py3-pyme/examples/signverify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/py3-pyme/examples/signverify.py b/lang/py3-pyme/examples/signverify.py
index e2f80357..f8804ca9 100755
--- a/lang/py3-pyme/examples/signverify.py
+++ b/lang/py3-pyme/examples/signverify.py
@@ -25,10 +25,10 @@ from pyme.constants.sig import mode
core.check_version(None)
-plain = core.Data("Test message")
+plain = core.Data(b"Test message")
sig = core.Data()
c = core.Context()
c.signers_clear()
# Add [email protected]'s keys in the list of signers
@@ -41,7 +41,7 @@ if not c.signers_enum(0):
# This is a map between signer e-mail and its password
passlist = {
- "<[email protected]>": "Crypt0R0cks"
+ b"<[email protected]>": b"Crypt0R0cks"
}
# callback will return password based on the e-mail listed in the hint.