Message80048
This unconverted example in the 3.1a doc needs a 'b' for 'bytes' added
before the three input and output string literals.
>>> import base64
>>> encoded = base64.b64encode('data to be encoded') # here
>>> encoded
'ZGF0YSB0byBiZSBlbmNvZGVk' # here
>>> data = base64.b64decode(encoded)
>>> data
'data to be encoded' #and here
Otherwise,
TypeError: expected bytes, not str |
|
Date |
User |
Action |
Args |
2009-01-17 21:33:01 | terry.reedy | set | recipients:
+ terry.reedy, georg.brandl |
2009-01-17 21:33:00 | terry.reedy | set | messageid: <1232227980.99.0.219231642791.issue4975@psf.upfronthosting.co.za> |
2009-01-17 21:33:00 | terry.reedy | link | issue4975 messages |
2009-01-17 21:32:59 | terry.reedy | create | |
|