From d1a6922e05b1b67ece3a696ba48b1534fc07c9c8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 09:30:35 +0000 Subject: automatic import of babeltrace --- python39.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 python39.patch (limited to 'python39.patch') diff --git a/python39.patch b/python39.patch new file mode 100644 index 0000000..4a24bee --- /dev/null +++ b/python39.patch @@ -0,0 +1,19 @@ +diff --git a/bindings/python/babeltrace/babeltrace.i.in b/bindings/python/babeltrace/babeltrace.i.in +index a773e9b3..b3bb53a0 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.17.1 + + -- cgit v1.2.3