[issue17840] base64_codec uses assert for runtime validity checks

Alex Henderson report at bugs.python.org
Sat Jul 6 14:49:55 CEST 2013


Alex Henderson added the comment:

I see that there is identical usage of "assert errors=='strict'" in a number of similar encodings modules:

base64_codec.py
bz2_codec.py
hex_codec.py
quopri_codec.py
uu_codec.py
zlib_codec.py

The error handling mode is irrelevant for all these codecs, so the attached patch addresses them all (choosing to ignore the error mode and documenting this).

----------
keywords: +patch
nosy: +alex.henderson
Added file: http://bugs.python.org/file30814/issue17840.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17840>
_______________________________________


More information about the Python-bugs-list mailing list