From 068424b26532f3551a81421a9be67ed206e5c11a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Aug 2021 07:02:28 +0100 Subject: gentoo resync : 11.08.2021 --- dev-python/doublex/files/doublex-1.9.2-py310.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dev-python/doublex/files/doublex-1.9.2-py310.patch (limited to 'dev-python/doublex/files/doublex-1.9.2-py310.patch') diff --git a/dev-python/doublex/files/doublex-1.9.2-py310.patch b/dev-python/doublex/files/doublex-1.9.2-py310.patch new file mode 100644 index 000000000000..5d3a974a38a1 --- /dev/null +++ b/dev-python/doublex/files/doublex-1.9.2-py310.patch @@ -0,0 +1,33 @@ +commit ec3ce987a95abd951840213b77d44624b2ca5e84 +Author: Louis Sautier +Date: Sat Aug 7 01:56:31 2021 +0200 + + Support Python 3.10 by using collections.abc + +diff --git a/doublex/internal.py b/doublex/internal.py +index 91f5866..072774a 100644 +--- a/doublex/internal.py ++++ b/doublex/internal.py +@@ -20,7 +20,7 @@ + + + import threading +-import collections ++import collections.abc + import functools + import six + +@@ -184,11 +184,11 @@ class Invocation(object): + return Invocation(double, name, InvocationContext(*args, **kargs)) + + def delegates(self, delegate): +- if isinstance(delegate, collections.Callable): ++ if isinstance(delegate, collections.abc.Callable): + self.__delegate = delegate + return + +- if isinstance(delegate, collections.Mapping): ++ if isinstance(delegate, collections.abc.Mapping): + self.__delegate = delegate.get + return + -- cgit v1.2.3