[Pkg-gnupg-commit] [gpgme] 02/412: String type

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 90079786c5cde4dd8ceb2e0fcda7605b08ccd021
Author: Ben McGinnes <ben at adversary.org>
Date:   Sat May 9 04:53:46 2015 +1000

    String type
    
    * the plain text string must be bytes and not unicode.
    * Expect most of the example code to have similar issues at present.
---
 lang/py3-pyme/examples/simple.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/py3-pyme/examples/simple.py b/lang/py3-pyme/examples/simple.py
index ceda3d9..5693d40 100755
--- a/lang/py3-pyme/examples/simple.py
+++ b/lang/py3-pyme/examples/simple.py
@@ -25,7 +25,7 @@ core.check_version(None)
 
 # Set up our input and output buffers.
 
-plain = core.Data('This is my message.')
+plain = core.Data(b'This is my message.')
 cipher = core.Data()
 
 # Initialize our context.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list