Apply black code formatter on all Python code
[babeltrace.git] / src / bindings / python / bt2 / bt2 / connection.py
index 4c52a776b32d38c81f5429fd1198f09e9ba487a4..9ffd7bb1ed3b4d19697d4cf2ce48161ab1eb3b31 100644 (file)
@@ -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
+        )
This page took 0.023737 seconds and 4 git commands to generate.