X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;h=47dab8f73fd65b9e188e5fd7def41a9f9faf3362;hp=ba7b89d8c57717696601705c7a350c25f8a243c1;hb=2c6f8520ad68e1ca0c9554d705c39790e7d3ef5f;hpb=0fd756a43bce605875565a14c1ed1b070fa3ad94 diff --git a/bindings/python/bt2/bt2/trace.py b/bindings/python/bt2/bt2/trace.py index ba7b89d8..47dab8f7 100644 --- a/bindings/python/bt2/bt2/trace.py +++ b/bindings/python/bt2/bt2/trace.py @@ -30,11 +30,11 @@ import functools def _trace_destruction_listener_from_native(user_listener, trace_ptr): - trace = bt2.trace.Trace._create_from_ptr_and_get_ref(trace_ptr) + trace = bt2.trace._Trace._create_from_ptr_and_get_ref(trace_ptr) user_listener(trace) -class Trace(object._SharedObject, collections.abc.Mapping): +class _Trace(object._SharedObject, collections.abc.Mapping): _get_ref = staticmethod(native_bt.trace_get_ref) _put_ref = staticmethod(native_bt.trace_put_ref) @@ -75,7 +75,7 @@ class Trace(object._SharedObject, collections.abc.Mapping): _name = property(fset=_name) def create_stream(self, stream_class, id=None, name=None): - utils._check_type(stream_class, bt2.stream_class.StreamClass) + utils._check_type(stream_class, bt2.stream_class._StreamClass) if stream_class.assigns_automatic_stream_id: if id is not None: