New submission from Hervé Cauwelier <he...@itaapy.com>: Hi,
In class "ZipFile", method "write" accepts "compress_type" parameter but not the "writestr" method. I see no reason for this limitation and the change is trivial. This is needed for generating ODF documents since the mimetype file must not be compressed, contrary to other parts. For now, I've copied the block of code that create a "ZipInfo" object in that "writestr" method. The attached patch shows the desired change. Thanks ---------- components: Library (Lib) files: writestr-compress_type.diff keywords: patch messages: 101486 nosy: he...@itaapy.com severity: normal status: open title: zipfile.py: consistency between "write" and "writestr" type: feature request versions: Python 2.6 Added file: http://bugs.python.org/file16620/writestr-compress_type.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8199> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com