X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace_class.py;h=a691da30d1492748a950d12cff8ea0a06fb8614d;hb=HEAD;hp=f6efe71c2135ac224cbfa8851222bc1dfc97c0cf;hpb=c345b07873b0cb0ed344bde32a322a1b1edf60ae;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/trace_class.py b/src/bindings/python/bt2/bt2/trace_class.py index f6efe71c..a691da30 100644 --- a/src/bindings/python/bt2/bt2/trace_class.py +++ b/src/bindings/python/bt2/bt2/trace_class.py @@ -4,23 +4,24 @@ # Copyright (c) 2018 Francis Deslauriers # Copyright (c) 2019 Simon Marchi -from bt2 import native_bt +import functools +import collections.abc + +from bt2 import error as bt2_error +from bt2 import trace as bt2_trace from bt2 import utils as bt2_utils +from bt2 import value as bt2_value from bt2 import object as bt2_object -from bt2 import stream_class as bt2_stream_class +from bt2 import native_bt from bt2 import field_class as bt2_field_class +from bt2 import stream_class as bt2_stream_class from bt2 import integer_range_set as bt2_integer_range_set -from bt2 import trace as bt2_trace -from bt2 import error as bt2_error -from bt2 import value as bt2_value -import collections.abc -import functools def _trace_class_destruction_listener_from_native( user_listener, handle, trace_class_ptr ): - trace_class = _TraceClass._create_from_ptr_and_get_ref(trace_class_ptr) + trace_class = _TraceClassConst._create_from_ptr_and_get_ref(trace_class_ptr) user_listener(trace_class) handle._invalidate()