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
/
interrupter.py
diff --git
a/src/bindings/python/bt2/bt2/interrupter.py
b/src/bindings/python/bt2/bt2/interrupter.py
index 39c22883d2d0304abfdc49b161e8af6efe2d142a..6026097cb78ce96b5afa32400f0f0c143f013c82 100644
(file)
--- a/
src/bindings/python/bt2/bt2/interrupter.py
+++ b/
src/bindings/python/bt2/bt2/interrupter.py
@@
-7,8
+7,13
@@
import bt2
class Interrupter(object._SharedObject):
class Interrupter(object._SharedObject):
- _get_ref = staticmethod(native_bt.interrupter_get_ref)
- _put_ref = staticmethod(native_bt.interrupter_put_ref)
+ @staticmethod
+ def _get_ref(ptr):
+ native_bt.interrupter_get_ref(ptr)
+
+ @staticmethod
+ def _put_ref(ptr):
+ native_bt.interrupter_put_ref(ptr)
def __init__(self):
ptr = native_bt.interrupter_create()
def __init__(self):
ptr = native_bt.interrupter_create()
This page took
0.028345 seconds
and
4
git commands to generate.