From 134c35b1917429a3bdd6e3a486b46635d70682fd Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Oct 2010 11:36:28 +0000 Subject: [PATCH] #9730: fix example. --- Doc/library/base64.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst index e282ea0ef5..0802e6c53c 100644 --- a/Doc/library/base64.rst +++ b/Doc/library/base64.rst @@ -157,12 +157,12 @@ The legacy interface: An example usage of the module: >>> import base64 - >>> encoded = base64.b64encode('data to be encoded') + >>> encoded = base64.b64encode(b'data to be encoded') >>> encoded b'ZGF0YSB0byBiZSBlbmNvZGVk' >>> data = base64.b64decode(encoded) >>> data - 'data to be encoded' + b'data to be encoded' .. seealso:: -- 2.40.0