Skip to content

Commit d283077

Browse files
authored
Merge pull request #437 from Chilipp/master
Moved InProcessKernelClient.flush to DummySocket
2 parents 6fc9a7e + 846531b commit d283077

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,8 @@ 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, timeout=1.0):
65+
"""no-op to comply with stream API"""
66+
pass
67+
6468
SocketABC.register(DummySocket)

0 commit comments

Comments
 (0)