bt2: always use staticmethod() with native function class attributes
[babeltrace.git] / bindings / python / bt2 / bt2 / query_executor.py
index ce31f694ec73cb83064a0780833ab58bed0d8a38..a87713ff1c8a4f2c540fb35fabd81592cd910692 100644 (file)
@@ -26,8 +26,8 @@ import bt2
 
 
 class QueryExecutor(object._SharedObject):
-    _get_ref = native_bt.query_executor_get_ref
-    _put_ref = native_bt.query_executor_put_ref
+    _get_ref = staticmethod(native_bt.query_executor_get_ref)
+    _put_ref = staticmethod(native_bt.query_executor_put_ref)
 
     def _handle_status(self, status, gen_error_msg):
         if status == native_bt.QUERY_EXECUTOR_STATUS_AGAIN:
This page took 0.025012 seconds and 4 git commands to generate.