Skip to content Skip to sidebar Skip to footer

Zipfile Python Module Bytesize Difference

I'm using zipfile module for python to extract a zipfile I retrieved from the internet using urllib.urlretrieve() the files in the zip file are patch files created by bsdiff, howe

Solution 1:

Is this on Windows? Maybe try f = open(dest, 'wb')

On Windows only, the b makes the filesystem treat the file as binary as opposed to plain text, and not mess with the line endings. On other systems, there's no difference (and the b is silently ignored).

Post a Comment for "Zipfile Python Module Bytesize Difference"