X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fconnection.py;h=9ffd7bb1ed3b4d19697d4cf2ce48161ab1eb3b31;hb=61d96b89a9c8b3b523558a3c007c2aaedaba2a55;hp=4c52a776b32d38c81f5429fd1198f09e9ba487a4;hpb=1eda2e7260a750e6cce4bf89ba09681510663ae9;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/connection.py b/src/bindings/python/bt2/bt2/connection.py index 4c52a776..9ffd7bb1 100644 --- a/src/bindings/python/bt2/bt2/connection.py +++ b/src/bindings/python/bt2/bt2/connection.py @@ -33,11 +33,19 @@ class _Connection(bt2.object._SharedObject): @property def downstream_port(self): port_ptr = native_bt.connection_borrow_downstream_port_const(self._ptr) - utils._handle_ptr(port_ptr, "cannot get connection object's downstream port object") - return bt2.port._create_from_ptr_and_get_ref(port_ptr, native_bt.PORT_TYPE_INPUT) + utils._handle_ptr( + port_ptr, "cannot get connection object's downstream port object" + ) + return bt2.port._create_from_ptr_and_get_ref( + port_ptr, native_bt.PORT_TYPE_INPUT + ) @property def upstream_port(self): port_ptr = native_bt.connection_borrow_upstream_port_const(self._ptr) - utils._handle_ptr(port_ptr, "cannot get connection object's upstream port object") - return bt2.port._create_from_ptr_and_get_ref(port_ptr, native_bt.PORT_TYPE_OUTPUT) + utils._handle_ptr( + port_ptr, "cannot get connection object's upstream port object" + ) + return bt2.port._create_from_ptr_and_get_ref( + port_ptr, native_bt.PORT_TYPE_OUTPUT + )