summaryrefslogtreecommitdiff
path: root/dev-python/zstandard/files/zstandard-0.23.0-py314.patch
blob: a2eb41c740605773f9755499690cc5e4ad2e83cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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