X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fmessage.py;h=6e3ab761513e054e8caa23f0ebd4e0cd48aad501;hb=eddea57540fc76d56c8d38bdfc330c8b9f5b4961;hp=bf6cf84d8f4a1f275dbade2c2505081218e3b9a2;hpb=e42e1587604ec69593e13503e623688fe26ba1d1;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/message.py b/src/bindings/python/bt2/bt2/message.py index bf6cf84d..6e3ab761 100644 --- a/src/bindings/python/bt2/bt2/message.py +++ b/src/bindings/python/bt2/bt2/message.py @@ -48,7 +48,7 @@ class _MessageWithDefaultClockSnapshot: def _get_default_clock_snapshot(self, borrow_clock_snapshot_ptr): snapshot_ptr = borrow_clock_snapshot_ptr(self._ptr) - return bt2_clock_snapshot._ClockSnapshot._create_from_ptr_and_get_ref( + return bt2_clock_snapshot._ClockSnapshotConst._create_from_ptr_and_get_ref( snapshot_ptr, self._ptr, self._get_ref, self._put_ref ) @@ -115,7 +115,7 @@ class _StreamMessage(_Message, _MessageWithDefaultClockSnapshot): if status == native_bt.MESSAGE_STREAM_CLOCK_SNAPSHOT_STATE_UNKNOWN: return bt2_clock_snapshot._UnknownClockSnapshot() - return bt2_clock_snapshot._ClockSnapshot._create_from_ptr_and_get_ref( + return bt2_clock_snapshot._ClockSnapshotConst._create_from_ptr_and_get_ref( snapshot_ptr, self._ptr, self._get_ref, self._put_ref )