X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fport.py;fp=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fport.py;h=1d649b35d72f4a6ec8a15a871cfec5400e8e5185;hb=cfbd7cf3bde05e8a6606478889dcd663604ef7b5;hp=4ba59f066df4c230e4b3ef92389f1ae7b50ad102;hpb=e3f7fd922b3dc8fd92ad9397f4f9e175ff843b2a;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/port.py b/src/bindings/python/bt2/bt2/port.py index 4ba59f06..1d649b35 100644 --- a/src/bindings/python/bt2/bt2/port.py +++ b/src/bindings/python/bt2/bt2/port.py @@ -110,10 +110,14 @@ class _UserComponentPort(_Port): class _UserComponentInputPort(_UserComponentPort, _InputPort): - _as_self_port_ptr = staticmethod(native_bt.self_component_port_input_as_self_component_port) + _as_self_port_ptr = staticmethod( + native_bt.self_component_port_input_as_self_component_port + ) def create_message_iterator(self): - msg_iter_ptr = native_bt.self_component_port_input_message_iterator_create(self._ptr) + msg_iter_ptr = native_bt.self_component_port_input_message_iterator_create( + self._ptr + ) if msg_iter_ptr is None: raise bt2.CreationError('cannot create message iterator object') @@ -121,7 +125,9 @@ class _UserComponentInputPort(_UserComponentPort, _InputPort): class _UserComponentOutputPort(_UserComponentPort, _OutputPort): - _as_self_port_ptr = staticmethod(native_bt.self_component_port_output_as_self_component_port) + _as_self_port_ptr = staticmethod( + native_bt.self_component_port_output_as_self_component_port + ) _PORT_TYPE_TO_PYCLS = {