python: make all _get_ref/_put_ref proper static methods
[babeltrace.git] / src / bindings / python / bt2 / bt2 / field_path.py
index a2d39629bf38ac7edc9a97b2e3f01fdfd9be3cc0..9dbb2d8fc410e8624d38d5dac4aba69496fe66b7 100644 (file)
@@ -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):
This page took 0.02308 seconds and 4 git commands to generate.