@@ -551,7 +551,9 @@ async def start(self, *, task_status: TaskStatus = TASK_STATUS_IGNORED) -> None:
551
551
# Assign tasks to and start shell channel thread.
552
552
manager = self .shell_channel_thread .manager
553
553
self .shell_channel_thread .add_task (self .shell_channel_thread_main )
554
- self .shell_channel_thread .add_task (manager .listen_from_control , self .shell_main , self .shell_channel_thread )
554
+ self .shell_channel_thread .add_task (
555
+ manager .listen_from_control , self .shell_main , self .shell_channel_thread
556
+ )
555
557
self .shell_channel_thread .add_task (manager .listen_from_subshells )
556
558
self .shell_channel_thread .start ()
557
559
else :
@@ -1081,7 +1083,9 @@ async def create_subshell_request(self, socket, ident, parent) -> None:
1081
1083
1082
1084
# This should only be called in the control thread if it exists.
1083
1085
# Request is passed to shell channel thread to process.
1084
- other_socket = await self .shell_channel_thread .manager .get_control_other_socket (self .control_thread .get_task_group ())
1086
+ other_socket = await self .shell_channel_thread .manager .get_control_other_socket (
1087
+ self .control_thread .get_task_group ()
1088
+ )
1085
1089
await other_socket .asend_json ({"type" : "create" })
1086
1090
reply = await other_socket .arecv_json ()
1087
1091
@@ -1103,7 +1107,9 @@ async def delete_subshell_request(self, socket, ident, parent) -> None:
1103
1107
1104
1108
# This should only be called in the control thread if it exists.
1105
1109
# Request is passed to shell channel thread to process.
1106
- other_socket = await self .shell_channel_thread .manager .get_control_other_socket (self .control_thread .get_task_group ())
1110
+ other_socket = await self .shell_channel_thread .manager .get_control_other_socket (
1111
+ self .control_thread .get_task_group ()
1112
+ )
1107
1113
await other_socket .asend_json ({"type" : "delete" , "subshell_id" : subshell_id })
1108
1114
reply = await other_socket .arecv_json ()
1109
1115
@@ -1118,7 +1124,9 @@ async def list_subshell_request(self, socket, ident, parent) -> None:
1118
1124
1119
1125
# This should only be called in the control thread if it exists.
1120
1126
# Request is passed to shell channel thread to process.
1121
- other_socket = await self .shell_channel_thread .manager .get_control_other_socket (self .control_thread .get_task_group ())
1127
+ other_socket = await self .shell_channel_thread .manager .get_control_other_socket (
1128
+ self .control_thread .get_task_group ()
1129
+ )
1122
1130
await other_socket .asend_json ({"type" : "list" })
1123
1131
reply = await other_socket .arecv_json ()
1124
1132
0 commit comments