Files
gentoo/dev-python/zstandard/files/zstandard-0.23.0-py314.patch
Sam James 952353d284 dev-python/zstandard: enable py3.14
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-11 19:35:16 +01:00

18 lines
625 B
Diff

https://github.com/indygreg/python-zstandard/issues/238
https://github.com/indygreg/python-zstandard/pull/262
https://src.fedoraproject.org/rpms/python-zstandard/blob/rawhide/f/python-zstandard-py314.patch
--- a/zstandard/__init__.py
+++ b/zstandard/__init__.py
@@ -18,7 +18,10 @@ import io
import os
import platform
-from typing import ByteString
+try:
+ from typing import ByteString
+except ImportError:
+ from collections.abc import Buffer as ByteString
# Some Python implementations don't support C extensions. That's why we have
# a CFFI implementation in the first place. The code here import one of our