gentoo/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-collections.patch
Maciej Barć 371a6d2402
dev-python/ffmpeg-python: fix collections import for _utils.py
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2024-02-05 12:28:32 +01:00

15 lines
292 B
Diff

--- a/ffmpeg/_utils.py
+++ b/ffmpeg/_utils.py
@@ -3,6 +3,11 @@ from builtins import str
import hashlib
import sys
+try:
+ from collections.abc import Iterable
+except ImportError:
+ from collections import Iterable
+
def with_metaclass(meta, *bases):
class metaclass(meta):