python: make all _get_ref/_put_ref proper static methods
[babeltrace.git] / src / bindings / python / bt2 / bt2 / graph.py
index ed99ef079c924c1e046770ae33ee0bffd381159b..3b0ce036984be36a374355383a41c1ad44c4c091 100644 (file)
@@ -23,8 +23,13 @@ def _graph_port_added_listener_from_native(
 
 
 class Graph(object._SharedObject):
-    _get_ref = staticmethod(native_bt.graph_get_ref)
-    _put_ref = staticmethod(native_bt.graph_put_ref)
+    @staticmethod
+    def _get_ref(ptr):
+        native_bt.graph_get_ref(ptr)
+
+    @staticmethod
+    def _put_ref(ptr):
+        native_bt.graph_put_ref(ptr)
 
     def __init__(self, mip_version=0):
         utils._check_uint64(mip_version)
This page took 0.032426 seconds and 4 git commands to generate.