cpython/Lib/zipfile
Gregory P. Smith b44b9d9900
gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` (#113969)
Make zipfile.ZipInfo.compress_level public.

A property is used to retain the behavior of the ._compresslevel.

People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be.

I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names.
2024-01-12 20:15:05 +00:00
..
_path gh-106752: Sync with zipp 3.16.2 (#106757) 2023-07-15 09:21:17 -04:00
__init__.py gh-113971: Make `zipfile.ZipInfo._compresslevel` public as `.compress_level` (#113969) 2024-01-12 20:15:05 +00:00
__main__.py gh-112578: Fix RuntimeWarning when running zipfile (GH-112579) 2023-12-03 13:09:29 +02:00