]> granicus.if.org Git - python/commitdiff
#9730: fix example.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 11:36:28 +0000 (11:36 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 11:36:28 +0000 (11:36 +0000)
Doc/library/base64.rst

index e282ea0ef55e8eb1ed72154a628839b7ec731ba7..0802e6c53c6c715d38b3abc6874e2f628c2381d5 100644 (file)
@@ -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::