diff options
author | Ben McGinnes <[email protected]> | 2015-05-08 18:53:46 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2015-05-08 18:53:46 +0000 |
commit | 90079786c5cde4dd8ceb2e0fcda7605b08ccd021 (patch) | |
tree | 519c544efb76abcded64ed16f7ed8d3897c1cd15 /lang/py3-pyme/examples/simple.py | |
parent | Python 3 port of PyME (diff) | |
download | gpgme-90079786c5cde4dd8ceb2e0fcda7605b08ccd021.tar.gz gpgme-90079786c5cde4dd8ceb2e0fcda7605b08ccd021.zip |
String type
* the plain text string must be bytes and not unicode.
* Expect most of the example code to have similar issues at present.
Diffstat (limited to '')
-rwxr-xr-x | lang/py3-pyme/examples/simple.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/py3-pyme/examples/simple.py b/lang/py3-pyme/examples/simple.py index ceda3d90..5693d40a 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. |