Commit Graph

2 Commits

Author SHA1 Message Date
Victor Stinner fe8ad53443
gh-132983: Convert compression._common to a package (#133086)
Add an "__init__.py" file. Fix test_tools.test_freeze.
2025-04-28 14:13:06 +00:00
Emma Smith 20be6ba61a
gh-132983: Introduce `compression` package and move `_compression` module (GH-133018)
* Introduces `compression` package for https://peps.python.org/pep-0784/

This commit introduces the `compression` package, specified in PEP 784
to re-export the `lzma`, `bz2`, `gzip`, and `zlib` modules. Introduction
of `compression.zstd` will be completed in a future commit once the
`_zstd` module is merged.

This commit also moves the `_compression` private module to
`compression._common._streams`.

* Re-exports existing module docstrings.
2025-04-27 14:41:30 -07:00