Skip to content

Commit fd98a18

Browse files
author
Chilipp
committed
Moved InProcessKernelClient.flush to DummySocket
Corrects the wrong placement of the flush method implemented in #405
1 parent 6fc9a7e commit fd98a18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ipykernel/inprocess/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ def _dispatch_to_kernel(self, msg):
172172
idents, reply_msg = self.session.recv(stream, copy=False)
173173
self.shell_channel.call_handlers_later(reply_msg)
174174

175-
def flush(self):
176-
"""no-op to comply with stream API"""
177-
178175

179176
#-----------------------------------------------------------------------------
180177
# ABC Registration

ipykernel/inprocess/socket.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ def send_multipart(self, msg_parts, flags=0, copy=True, track=False):
6161
self.queue.put_nowait(msg_parts)
6262
self.message_sent += 1
6363

64+
def flush(self):
65+
"""no-op to comply with stream API"""
66+
6467
SocketABC.register(DummySocket)

0 commit comments

Comments
 (0)