gentoo/dev-python/lz4/files/lz4-4.4.4-fix-py3.14.patch
Arthur Zamarin 8f03ce653d
dev-python/lz4: enable py3.14
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-05-29 23:18:46 +03:00

21 lines
627 B
Diff

https://github.com/python-lz4/python-lz4/pull/303
From: Karolina Surma <ksurma@redhat.com>
Date: Thu, 29 May 2025 12:06:30 +0200
Subject: [PATCH] Correct the import of _compression for Python 3.14
This is backwards compatible with all supported versions of Python.
--- a/lz4/frame/__init__.py
+++ b/lz4/frame/__init__.py
@@ -25,9 +25,9 @@
__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.6 - 3.13
BLOCKSIZE_DEFAULT = _BLOCKSIZE_DEFAULT