]> granicus.if.org Git - python/commit
Issue #22088: Clarify base-64 alphabets and which characters are discarded
authorMartin Panter <vadmium+py@gmail.com>
Tue, 23 Feb 2016 22:30:50 +0000 (22:30 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 23 Feb 2016 22:30:50 +0000 (22:30 +0000)
commitee3074e1f473c2ebdc89e2b6889747fc586002e9
tree92767bec7863d3a7c7e62ff507d88482f43cc623
parente1d4e58777f28bb000fe95768186f70ff1de45a3
Issue #22088: Clarify base-64 alphabets and which characters are discarded

* There are only two base-64 alphabets defined by the RFCs, not three
* Due to the internal translation, plus (+) and slash (/) are never discarded
* standard_ and urlsafe_b64decode() discard characters as well

Also update the doc strings to clarify data types, based on revision
92760d2edc9e, correct the exception raised by b16decode(), and correct the
parameter name for the base-85 functions.
Doc/library/base64.rst
Lib/base64.py
Lib/test/test_base64.py