From 943ca5e1d6b72830c530a72426cff094f155d010 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Tue, 12 Apr 2022 15:46:40 +0200 Subject: gh-90839: Forward gzip.compress() compresslevel to zlib (gh-31215) --- Lib/gzip.py | 3 ++- Misc/NEWS.d/next/Library/2022-03-21-13-50-07.bpo-46681.RRhopn.rst | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2022-03-21-13-50-07.bpo-46681.RRhopn.rst diff --git a/Lib/gzip.py b/Lib/gzip.py index 6773ea3..5b20e5b 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("