X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fnative_bt_component_class.i.h;h=7299d0138d812d13d6950ebd67a0c025342265fc;hb=14cfc8ce101e9a63b8d0aa3075407e987669c3ed;hp=58c6c7740f8fd72ce476c7dda96896f894c93e4d;hpb=b39a11cfd7bf24185d268a2263b0212ca5ce23cb;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h index 58c6c774..7299d013 100644 --- a/src/bindings/python/bt2/bt2/native_bt_component_class.i.h +++ b/src/bindings/python/bt2/bt2/native_bt_component_class.i.h @@ -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));