aboutsummaryrefslogtreecommitdiffstats
path: root/lang/py3-pyme/examples/simple.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2015-05-08 18:53:46 +0000
committerBen McGinnes <[email protected]>2015-05-08 18:53:46 +0000
commit90079786c5cde4dd8ceb2e0fcda7605b08ccd021 (patch)
tree519c544efb76abcded64ed16f7ed8d3897c1cd15 /lang/py3-pyme/examples/simple.py
parentPython 3 port of PyME (diff)
downloadgpgme-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-xlang/py3-pyme/examples/simple.py2
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.