X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Ffield_class.py;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Ffield_class.py;h=db36c373adc819317147042b60ffa82e80e279a3;hb=7542c30dcccf30818e255f25fd5c8f3e6f5d576b;hp=cec7cafba2aa4aa0ef8daaf25cafc0cc49207984;hpb=c6a70ac31c44e83e1b41d062a68d026c7e73f5a3;p=deliverable%2Fbabeltrace.git diff --git a/bindings/python/bt2/bt2/field_class.py b/bindings/python/bt2/bt2/field_class.py index cec7cafba..db36c373a 100644 --- a/bindings/python/bt2/bt2/field_class.py +++ b/bindings/python/bt2/bt2/field_class.py @@ -32,7 +32,7 @@ def _create_from_ptr(ptr): return _TYPE_ID_TO_OBJ[typeid]._create_from_ptr(ptr) -class _FieldClass(object._Object, metaclass=abc.ABCMeta): +class _FieldClass(object._SharedObject, metaclass=abc.ABCMeta): def __init__(self, ptr): super().__init__(ptr) @@ -268,8 +268,8 @@ class _EnumerationFieldClassMapping: return (self.name, self.lower, self.upper) == (other.name, other.lower, other.upper) -class _EnumerationFieldClassMappingIterator(object._Object, - collections.abc.Iterator): +class _EnumerationFieldClassMappingIterator(object._SharedObject, + collections.abc.Iterator): def __init__(self, iter_ptr, is_signed): super().__init__(iter_ptr) self._is_signed = is_signed