bt2: make can_seek_beginning a method instead of a property
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_component_class.i.h
index 58c6c7740f8fd72ce476c7dda96896f894c93e4d..7299d0138d812d13d6950ebd67a0c025342265fc 100644 (file)
@@ -548,7 +548,8 @@ component_class_can_seek_beginning(
        py_iter = bt_self_message_iterator_get_data(self_message_iterator);
        BT_ASSERT(py_iter);
 
-       py_result = PyObject_GetAttrString(py_iter, "_bt_can_seek_beginning_from_native");
+       py_result = PyObject_CallMethod(py_iter,
+               "_bt_can_seek_beginning_from_native", NULL);
 
        BT_ASSERT(!py_result || PyBool_Check(py_result));
 
This page took 0.024095 seconds and 4 git commands to generate.