X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ffield_path.py;h=9dbb2d8fc410e8624d38d5dac4aba69496fe66b7;hp=a2d39629bf38ac7edc9a97b2e3f01fdfd9be3cc0;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/field_path.py b/src/bindings/python/bt2/bt2/field_path.py index a2d39629..9dbb2d8f 100644 --- a/src/bindings/python/bt2/bt2/field_path.py +++ b/src/bindings/python/bt2/bt2/field_path.py @@ -35,8 +35,13 @@ class _CurrentOptionContentFieldPathItem(_FieldPathItem): class _FieldPathConst(object._SharedObject, collections.abc.Iterable): - _get_ref = staticmethod(native_bt.field_path_get_ref) - _put_ref = staticmethod(native_bt.field_path_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.field_path_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.field_path_put_ref(ptr) @property def root_scope(self):