Message92007
The problem appears to be that the gzip module simply doesn't support
universal newlines yet.
I'm currently working on the zipfile module's universal newline support
(issue6759) so if nobody else is working on this, I'll do it.
I'm not sure if file object's open() behavior when presented with 'rUb'
is correct or not.
>>> f = open("test.txt", "w").write("blah\r\nblah\rblah\nblah\r\n")
>>> f = open("test.txt", "rUb")
>>> f.read()
'blah\nblah\nblah\nblah\n'
Since 'U' and 'b' are conceptually mutually exclusive on platforms where
'b' matters, I can see this being confusing. |
|
Date |
User |
Action |
Args |
2009-08-27 15:42:11 | agillesp | set | recipients:
+ agillesp, skip.montanaro, jackdied, Chris.Barker, radek768 |
2009-08-27 15:42:11 | agillesp | set | messageid: <1251387731.11.0.429526624961.issue5148@psf.upfronthosting.co.za> |
2009-08-27 15:42:10 | agillesp | link | issue5148 messages |
2009-08-27 15:42:09 | agillesp | create | |
|