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
/
connection.py
diff --git
a/src/bindings/python/bt2/bt2/connection.py
b/src/bindings/python/bt2/bt2/connection.py
index 0f1fce65c8d5c2529b9bfd066b6fb494ce1dbdf6..71066ac61e19b7443c7ff7d6c27fc976a2b53e78 100644
(file)
--- a/
src/bindings/python/bt2/bt2/connection.py
+++ b/
src/bindings/python/bt2/bt2/connection.py
@@
-8,8
+8,13
@@
from bt2 import object as bt2_object
class _ConnectionConst(bt2_object._SharedObject):
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):
@property
def downstream_port(self):
This page took
0.024657 seconds
and
4
git commands to generate.