From: Tom Henderson
Subject: Fix a FTBFS with Python 3.10
Origin: upstream, https://github.com/gjcarneiro/pybindgen/commit/e645cc684602802580a0b800518c784100d54561
Bug-Debian: http://bugs.debian.org/1008795

---
 pybindgen-0.22.0/pybindgen/cppclass.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Index: b/pybindgen-0.22.0/pybindgen/cppclass.py
===================================================================
--- a/pybindgen-0.22.0/pybindgen/cppclass.py
+++ b/pybindgen-0.22.0/pybindgen/cppclass.py
@@ -35,11 +35,12 @@ from . import function
 
 import collections
 
-# Prepare for python 3.9
+# Prepare for python 3.9 & 3.10
 try:
     collectionsCallable = collections.Callable
 except AttributeError:
-    collectionsCallable = collections
+    import collections.abc
+    collectionsCallable = collections.abc.Callable
 
 try:
     set
