1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Karolina Surma <ksurma@redhat.com>
Date: Thu, 29 May 2025 12:06:30 +0200
Subject: Correct the import of _compression for Python 3.14
This is backwards compatible with all supported versions of Python.
Co-authored-by: Christian Clauss <cclauss@me.com>
Origin: other, https://github.com/python-lz4/python-lz4/pull/303
Bug: https://github.com/python-lz4/python-lz4/issues/302
Bug-Debian: https://bugs.debian.org/1117907
Last-Update: 2025-10-12
---
lz4/frame/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lz4/frame/__init__.py b/lz4/frame/__init__.py
index 00f3e64..91ad50b 100644
--- a/lz4/frame/__init__.py
+++ b/lz4/frame/__init__.py
@@ -25,9 +25,9 @@ from ._frame import ( # noqa: F401
__doc__ = _doc
try:
- import _compression # Python 3.6 and later
+ import compression._common._streams as _compression # Python 3.14
except ImportError:
- from . import _compression
+ import _compression # Python 3.9 - 3.13
BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT
|