From 90079786c5cde4dd8ceb2e0fcda7605b08ccd021 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Sat, 9 May 2015 04:53:46 +1000 Subject: [PATCH] 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 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.