decompress zipped files on Windows
Alan G Isaac
aisaac at american.edu
Thu Sep 23 22:27:32 CEST 2004
I have an .zip archive of compressed files that
I want to decompress. Using the zipfile module,
for zname in z.namelist():
The original files were all plain text,
created on an unspecified platform.
The files I decompressed this way contain
*two successive* carriage returns
(ASCII 13) at the end of each line.
If I change 'w' to 'wb' I get only one.
Why is this extra carriage return added?
My original guess was the using 'w' instead
of 'wb' would be the right action, since the
platform for the original files is unspecified.
More information about the Python-list