python: make all _get_ref/_put_ref proper static methods
[babeltrace.git] / src / bindings / python / bt2 / bt2 / connection.py
index 0f1fce65c8d5c2529b9bfd066b6fb494ce1dbdf6..71066ac61e19b7443c7ff7d6c27fc976a2b53e78 100644 (file)
@@ -8,8 +8,13 @@ from bt2 import object as bt2_object
 
 
 class _ConnectionConst(bt2_object._SharedObject):
-    _get_ref = staticmethod(native_bt.connection_get_ref)
-    _put_ref = staticmethod(native_bt.connection_put_ref)
+    @staticmethod
+    def _get_ref(ptr):
+        native_bt.connection_get_ref(ptr)
+
+    @staticmethod
+    def _put_ref(ptr):
+        native_bt.connection_put_ref(ptr)
 
     @property
     def downstream_port(self):
This page took 0.025267 seconds and 4 git commands to generate.