mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 08:58:27 -07:00
18 lines
625 B
Diff
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
|