[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

Art Gillespie report at bugs.python.org
Thu Aug 27 05:57:30 CEST 2009


Art Gillespie <agillesp at gmail.com> added the comment:

Latest patch attached.

* Fixed the code that populates the newlines attribute.  I think I've
covered all the cases...

* Found another deviation from file object behavior in this module: 
Calling read with a negative size parameter does not always return the
remainder of the file as described in
http://docs.python.org/library/stdtypes.html#file.read  I went ahead and
fixed this--please let me know if I should open a separate issue and
submit a separate patch.

* Added more tests for mixed eol files, calling read with a negative
size parameter, reading a file with only crlfs

----------
Added file: http://bugs.python.org/file14787/issue6759_4.diff

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


More information about the Python-bugs-list mailing list