[issue21685] zipfile module doesn't properly compress odt documents

SilentGhost report at bugs.python.org
Sat Jun 7 15:18:52 CEST 2014


SilentGhost added the comment:

Raimondo, the documentation clearly states that the compression method is either inherited from ZipInfo instance (when that one is passed) or set to ZIP_STORED otherwise. Since you're not passing ZipInfo instance, but the string (as the first argument to .writestr), therefore the compression method is set to ZIP_STORED. If you're not set it to ZIP_DEFLATED explicitly, it would work as you expect it. In either case, this behaviour is in accordance with the documentation.

----------
nosy: +SilentGhost

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


More information about the Python-bugs-list mailing list