]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39389: gzip: fix compression level metadata (GH-18077)
authorWilliam Chargin <wchargin@gmail.com>
Tue, 21 Jan 2020 11:25:24 +0000 (03:25 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 21 Jan 2020 11:25:24 +0000 (13:25 +0200)
commiteab3b3f1c60afecfb4db3c3619109684cb04bd60
tree311e513af209b2fa14f0d46720801aa4e1f02462
parent85ead4fc62829cb7ef2eb0af1a2933282f58c629
bpo-39389: gzip: fix compression level metadata (GH-18077)

As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a
gzip member header should indicate whether the DEFLATE algorithm was
tuned for speed or compression ratio. Prior to this patch, archives
emitted by the `gzip` module always indicated maximum compression.
Lib/gzip.py
Lib/test/test_gzip.py
Misc/NEWS.d/next/Library/2020-01-20-00-56-01.bpo-39389.fEirIS.rst [new file with mode: 0644]