Skip to content
Snippets Groups Projects
Commit 8ee74bc8 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

fix[BrainScaleS]: support build of genpybind w/ Python@3.10:

parent c1e7719b
No related branches found
No related tags found
3 merge requests!386update v0.20.0 branch,!379create new experimental release,!376fix[BrainScaleS]: support build of genpybind w/ Python@3.10:
Pipeline #24019 passed with stage
in 6 minutes and 25 seconds
......@@ -50,6 +50,9 @@ class Genpybind(WafPackage):
extends('python')
patch('v0.2.1-python3.10.patch', when='@:0.2.1 ^python@3.10:')
def configure_args(self):
args = super(Genpybind, self).configure_args()
......
diff --git a/genpybind/annotations.py b/genpybind/annotations.py
index 1dfd1f4..871ef4d 100644
--- a/genpybind/annotations.py
+++ b/genpybind/annotations.py
@@ -3,7 +3,7 @@
from __future__ import unicode_literals
import ast
-import collections
+from collections.abc import Sequence
from clang.cindex import CursorKind
@@ -25,7 +25,7 @@ LOZENGE = u"◊"
SPECIAL_NAMES = {"true": True, "false": False, "default": None, "none": None}
-class Annotations(collections.Sequence):
+class Annotations(Sequence):
def __init__(self, annotations=None):
# type: (Union[None, Text, Iterable[Text]]) -> None
self._annotations = [] # type: List[AnnotationT]
diff --git a/genpybind/registry.py b/genpybind/registry.py
index 4f66ace..75ba7a9 100644
--- a/genpybind/registry.py
+++ b/genpybind/registry.py
@@ -1,6 +1,6 @@
from __future__ import unicode_literals
-import collections
+from collections.abc import Mapping
import re
from clang import cindex
@@ -16,7 +16,7 @@ if False: # pylint: disable=using-constant-test
RE_NON_IDENTIFIER = re.compile(r"[^a-zA-Z0-9_]+")
-class Registry(collections.Mapping):
+class Registry(Mapping):
def __init__(self, tags=None):
# type: (Optional[Iterable[Text]]) -> None
self._declarations = {} # type: Dict[Text, Optional[Declaration]]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment