From: Ilya Leoshkevich Date: Tue, 12 Apr 2022 13:46:40 +0000 (+0200) Subject: gh-90839: Forward gzip.compress() compresslevel to zlib (gh-31215) X-Git-Tag: v3.11.0b1~392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=943ca5e1d6b72830c530a72426cff094f155d010;p=thirdparty%2FPython%2Fcpython.git gh-90839: Forward gzip.compress() compresslevel to zlib (gh-31215) --- diff --git a/Lib/gzip.py b/Lib/gzip.py index 6773ea3eef09..5b20e5ba698e 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -587,7 +587,8 @@ def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None): header = _create_simple_gzip_header(compresslevel, mtime) trailer = struct.pack("