[New-bugs-announce] [issue27521] Misleading compress level header on files created with gzip

Dor Dankner report at bugs.python.org
Fri Jul 15 13:26:50 EDT 2016


New submission from Dor Dankner:

When creating a gzip file using the gzip module,
the wrong header is set as the compress level when not using the default (9).
the reason is that the header is set blindly as \002, without really checking what compress level is.

Patch to fix that behaviour is provided :)
(Patch tested on python 3.5, but relevant to 2.x versions too)

----------
components: Extension Modules
files: gzip_compressionlvl_header_fix.patch
keywords: patch
messages: 270490
nosy: ddorda
priority: normal
severity: normal
status: open
title: Misleading compress level header on files created with gzip
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file43732/gzip_compressionlvl_header_fix.patch

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


More information about the New-bugs-announce mailing list