Change-Id: Idd4ec7facdc0e812ccf7e9afbed33e28e55f6ef1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13401
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
import collections.abc
-from bt2 import error as bt2_error
from bt2 import utils as bt2_utils
from bt2 import value as bt2_value
from bt2 import object as bt2_object
def _borrow_user_attributes_ptr(ptr):
return native_bt.field_class_borrow_user_attributes_const(ptr)
- def _check_create_status(self, ptr):
- if ptr is None:
- raise bt2_error._MemoryError(
- "cannot create {} field class object".format(self._NAME.lower())
- )
-
class _FieldClass(bt2_user_attrs._WithUserAttrs, _FieldClassConst):
@staticmethod