X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fgraph.py;h=3b0ce036984be36a374355383a41c1ad44c4c091;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hp=ed99ef079c924c1e046770ae33ee0bffd381159b;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/graph.py b/src/bindings/python/bt2/bt2/graph.py index ed99ef07..3b0ce036 100644 --- a/src/bindings/python/bt2/bt2/graph.py +++ b/src/bindings/python/bt2/bt2/graph.py @@ -23,8 +23,13 @@ def _graph_port_added_listener_from_native( class Graph(object._SharedObject): - _get_ref = staticmethod(native_bt.graph_get_ref) - _put_ref = staticmethod(native_bt.graph_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.graph_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.graph_put_ref(ptr) def __init__(self, mip_version=0): utils._check_uint64(mip_version)