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