File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ def process_stream_events(shell_stream):
453453 shell_stream = get_shell_stream (kernel )
454454 notifier = partial (process_stream_events , shell_stream )
455455
456- if os .name == 'nt' :
456+ if os .name == "nt" :
457457 stop_event = asyncio .Event ()
458458 t = None
459459
@@ -465,7 +465,7 @@ def blocking_poll():
465465 events = poller .poll (None )
466466 if events :
467467 loop .call_soon_threadsafe (notifier )
468-
468+
469469 t = threading .Thread (target = blocking_poll , daemon = True )
470470 t .start ()
471471 else :
@@ -481,7 +481,7 @@ def blocking_poll():
481481 except Exception as e :
482482 error = e
483483 if loop ._should_close : # type:ignore[attr-defined]
484- if os .name == 'nt' :
484+ if os .name == "nt" :
485485 stop_event .set ()
486486 if t is not None :
487487 t .join ()
You can’t perform that action at this time.
0 commit comments