History log of /external/python/cpython2/Lib/encodings/zlib_codec.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c7797dc7482035ee166ca2e941b623382b92e1fc 31-May-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #19543: Emit deprecation warning for known non-text encodings.

Backported issues #19619: encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.

Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
/external/python/cpython2/Lib/encodings/zlib_codec.py
2c9838e30f825b3bdaf0fc33f15a3cc74320ba6e 29-Oct-2006 Georg Brandl <georg@python.org> Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
/external/python/cpython2/Lib/encodings/zlib_codec.py
abb02e59946f9ea3076e96e3b03b51d1cebd46b4 15-Mar-2006 Walter Dörwald <walter@livinglogic.de> Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass
of tuple) that provides incremental decoders and encoders (a way to use
stateful codecs without the stream API). Functions
codecs.getincrementaldecoder() and codecs.getincrementalencoder() have
been added.
/external/python/cpython2/Lib/encodings/zlib_codec.py
469cdad8228df7bc294dc946b8cd4c0b7f810735 08-Aug-2002 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/encodings/zlib_codec.py
26e3b681b26c9978c819396e278f43d356d86f9e 20-Sep-2001 Marc-André Lemburg <mal@egenix.com> Patch #462635 by Andrew Kuchling correcting bugs in the new
codecs -- the self argument does matter for Python functions (it
does not for C functions which most other codecs use).
/external/python/cpython2/Lib/encodings/zlib_codec.py
2d9204199fe8913cca9890f1822413d981587ee5 15-May-2001 Marc-André Lemburg <mal@egenix.com> This patch changes the way the string .encode() method works slightly
and introduces a new method .decode().

The major change is that strg.encode() will no longer try to convert
Unicode returns from the codec into a string, but instead pass along
the Unicode object as-is. The same is now true for all other codec
return types. The underlying C APIs were changed accordingly.

Note that even though this does have the potential of breaking
existing code, the chances are low since conversion from Unicode
previously took place using the default encoding which is normally
set to ASCII rendering this auto-conversion mechanism useless for
most Unicode encodings.

The good news is that you can now use .encode() and .decode() with
much greater ease and that the door was opened for better accessibility
of the builtin codecs.

As demonstration of the new feature, the patch includes a few new
codecs which allow string to string encoding and decoding (rot13,
hex, zip, uu, base64).

Written by Marc-Andre Lemburg. Copyright assigned to the PSF.
/external/python/cpython2/Lib/encodings/zlib_codec.py