.gitignore: add missing test binaries
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field_path.py
index a2d39629bf38ac7edc9a97b2e3f01fdfd9be3cc0..d64d22861e4b7524f98a184f834a6f0df21fb9dd 100644 (file)
@@ -3,7 +3,9 @@
 # Copyright (c) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
 
 import collections
-from bt2 import native_bt, object
+
+from bt2 import object as bt2_object
+from bt2 import native_bt
 
 
 class FieldPathScope:
@@ -34,9 +36,14 @@ class _CurrentOptionContentFieldPathItem(_FieldPathItem):
     pass
 
 
-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)
+class _FieldPathConst(bt2_object._SharedObject, collections.abc.Iterable):
+    @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):
This page took 0.034837 seconds and 4 git commands to generate.