Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2379877 commit 134c35bCopy full SHA for 134c35b
1 file changed
Doc/library/base64.rst
@@ -157,12 +157,12 @@ The legacy interface:
157
An example usage of the module:
158
159
>>> import base64
160
- >>> encoded = base64.b64encode('data to be encoded')
+ >>> encoded = base64.b64encode(b'data to be encoded')
161
>>> encoded
162
b'ZGF0YSB0byBiZSBlbmNvZGVk'
163
>>> data = base64.b64decode(encoded)
164
>>> data
165
- 'data to be encoded'
+ b'data to be encoded'
166
167
168
.. seealso::
0 commit comments