[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()
Serhiy Storchaka
report at bugs.python.org
Thu Nov 21 17:44:34 CET 2013
Serhiy Storchaka added the comment:
Why
return codecs.CodecInfo._declare_transform(
name='base64',
encode=base64_encode,
decode=base64_decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
instead of
codec = codecs.CodecInfo(
name='base64',
encode=base64_encode,
decode=base64_decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
codec._is_text_encoding = False
return codec
?
I have added other minor comments on Rietveld.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19619>
_______________________________________
More information about the Python-bugs-list
mailing list