babeltrace/backport-python3-Mapping-function-change-lead-to-build-failed.patch

28 lines
1.0 KiB
Diff

From a01c13636e229fb7766123c9597ffcecfe308c5d Mon Sep 17 00:00:00 2001
From: hanhui <hanhui15@h-partners.com>
Date: Sat, 16 Apr 2022 08:58:37 +0800
Subject: [PATCH] python3.10,Mapping function change lead to babeltrace build failed
---
bindings/python/babeltrace/babeltrace.i.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bindings/python/babeltrace/babeltrace.i.in b/bindings/python/babeltrace/babeltrace.i.in
index a773e9b..7cd3855 100644
--- a/bindings/python/babeltrace/babeltrace.i.in
+++ b/bindings/python/babeltrace/babeltrace.i.in
@@ -672,8 +672,8 @@ class CTFScope:
_scopes = [CTFScope.EVENT_FIELDS, CTFScope.EVENT_CONTEXT, CTFScope.STREAM_EVENT_CONTEXT,
CTFScope.STREAM_EVENT_HEADER, CTFScope.STREAM_PACKET_CONTEXT, CTFScope.TRACE_PACKET_HEADER]
-import collections
-class Event(collections.Mapping):
+import collections.abc
+class Event(collections.abc.Mapping):
"""
This class represents an event from the trace.
It is obtained using the TraceCollection generator functions.
--
2.33.0