bt2: always use staticmethod() with native function class attributes
[babeltrace.git] / bindings / python / bt2 / bt2 / graph.py
index e42b242568e4e2215a5976bb09636e7ba00587ff..f79c954e1b59d252839a5ba2df78ec7e0a5b0bc8 100644 (file)
@@ -87,8 +87,8 @@ def _graph_ports_disconnected_listener_from_native(user_listener,
 
 
 class Graph(object._SharedObject):
-    _get_ref = native_bt.graph_get_ref
-    _put_ref = native_bt.graph_put_ref
+    _get_ref = staticmethod(native_bt.graph_get_ref)
+    _put_ref = staticmethod(native_bt.graph_put_ref)
 
     def __init__(self):
         ptr = native_bt.graph_create()
This page took 0.024012 seconds and 4 git commands to generate.