]> git.ipfire.org Git - thirdparty/Python/cpython.git/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)
commit39267c21cc8e5e7bc8facd1260eac212b9ebeefd
tree564cf5a6df7e0172901e1b5f0b8ca4368e10c67d
parent3058eb418a3374ddb9ae8b7f29f4ebd072837dd7
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
Doc/library/base64.rst
Lib/base64.py
Lib/test/test_base64.py