Message115506
PATCH
Specifically, in section 17.6. base64..., near bottom, example should be
>>> import base64
>>> encoded = base64.b64encode(b'data to be encoded') #hang
>>> encoded
b'ZGF0YSB0byBiZSBlbmNvZGVk'
>>> data = base64.b64decode(encoded)
>>> data
b'data to be encoded'
with the first and third 'b' prefixes added.
I confirmed that doctest works with above.
I am a bit puzzled about Sphinx and 3.x comment, as doctest just need a plain ascii file and does not care how it was produced. (I used browser Save As text file function.) However, moot now. |
|
Date |
User |
Action |
Args |
2010-09-03 20:55:35 | terry.reedy | set | recipients:
+ terry.reedy, orsenthil, pitrou, stutzbach, ezio.melotti, r.david.murray, Dmitry.Jemerov, docs@python, JingCheng.LIU |
2010-09-03 20:55:34 | terry.reedy | set | messageid: <1283547334.94.0.598926205062.issue9730@psf.upfronthosting.co.za> |
2010-09-03 20:55:32 | terry.reedy | link | issue9730 messages |
2010-09-03 20:55:32 | terry.reedy | create | |
|