X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fevent_class.py;h=cb7cc73fcdd4442b32503e0591a0b451bc587867;hp=d3141b86f0a79a0362c9cd3fc6ad18be343c41e2;hb=d24d56638469189904fb6ddbb3c725817b3e9417;hpb=15caa1ca4fac30bd196602bd136e48fda3892de2 diff --git a/src/bindings/python/bt2/bt2/event_class.py b/src/bindings/python/bt2/bt2/event_class.py index d3141b86..cb7cc73f 100644 --- a/src/bindings/python/bt2/bt2/event_class.py +++ b/src/bindings/python/bt2/bt2/event_class.py @@ -112,8 +112,9 @@ class _EventClass(object._SharedObject): def _emf_uri(self, emf_uri): utils._check_str(emf_uri) - ret = native_bt.event_class_set_emf_uri(self._ptr, emf_uri) - utils._handle_ret(ret, "cannot set event class object's EMF URI") + status = native_bt.event_class_set_emf_uri(self._ptr, emf_uri) + utils._handle_func_status(status, + "cannot set event class object's EMF URI") _emf_uri = property(fset=_emf_uri) @@ -129,8 +130,9 @@ class _EventClass(object._SharedObject): def _specific_context_field_class(self, context_field_class): if context_field_class is not None: utils._check_type(context_field_class, bt2.field_class._StructureFieldClass) - ret = native_bt.event_class_set_specific_context_field_class(self._ptr, context_field_class._ptr) - utils._handle_ret(ret, "cannot set event class object's context field class") + status = native_bt.event_class_set_specific_context_field_class(self._ptr, context_field_class._ptr) + utils._handle_func_status(status, + "cannot set event class object's context field class") _specific_context_field_class = property(fset=_specific_context_field_class) @@ -146,8 +148,9 @@ class _EventClass(object._SharedObject): def _payload_field_class(self, payload_field_class): if payload_field_class is not None: utils._check_type(payload_field_class, bt2.field_class._StructureFieldClass) - ret = native_bt.event_class_set_payload_field_class(self._ptr, payload_field_class._ptr) - utils._handle_ret(ret, "cannot set event class object's payload field class") + status = native_bt.event_class_set_payload_field_class(self._ptr, payload_field_class._ptr) + utils._handle_func_status(status, + "cannot set event class object's payload field class") _payload_field_class = property(fset=_payload_field_class)