projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: make all _get_ref/_put_ref proper static methods
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
query_executor.py
diff --git
a/src/bindings/python/bt2/bt2/query_executor.py
b/src/bindings/python/bt2/bt2/query_executor.py
index 354404a6e3ee199d7fe7aff4c52eff621d476b76..840e0fdd867135bb4e00c06487494bb067c7b297 100644
(file)
--- 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):
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
def _as_query_executor_ptr(self):
return self._ptr
This page took
0.024032 seconds
and
4
git commands to generate.