X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fquery_executor.py;h=840e0fdd867135bb4e00c06487494bb067c7b297;hp=354404a6e3ee199d7fe7aff4c52eff621d476b76;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/query_executor.py b/src/bindings/python/bt2/bt2/query_executor.py index 354404a6..840e0fdd 100644 --- a/src/bindings/python/bt2/bt2/query_executor.py +++ b/src/bindings/python/bt2/bt2/query_executor.py @@ -30,8 +30,13 @@ class _QueryExecutorCommon: class QueryExecutor(object._SharedObject, _QueryExecutorCommon): - _get_ref = staticmethod(native_bt.query_executor_get_ref) - _put_ref = staticmethod(native_bt.query_executor_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.query_executor_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.query_executor_put_ref(ptr) def _as_query_executor_ptr(self): return self._ptr