summaryrefslogtreecommitdiffstats
path: root/Doc/library/base64.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-17 11:36:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-17 11:36:28 (GMT)
commit134c35b1917429a3bdd6e3a486b46635d70682fd (patch)
treecef2839757c6cf8b34704623ddf7ef3ddeab091f /Doc/library/base64.rst
parent237987724602194fc0ee8b6e362a96e6ed6c0185 (diff)
downloadcpython-134c35b1917429a3bdd6e3a486b46635d70682fd.zip
cpython-134c35b1917429a3bdd6e3a486b46635d70682fd.tar.gz
cpython-134c35b1917429a3bdd6e3a486b46635d70682fd.tar.bz2
#9730: fix example.
Diffstat (limited to 'Doc/library/base64.rst')
-rw-r--r--Doc/library/base64.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst
index e282ea0..0802e6c 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::