Skip to content

Commit ceabb6b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 36ae0fd commit ceabb6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipykernel/eventloops.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)