Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay committed Dec 21, 2020
1 parent e95d75b commit 3d2be0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupyter_server/services/kernels/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ def nudge(self):
iopub_future = Future()
both_done = gen.multi([info_future, iopub_future])

def finish(f=None):
def finish(_=None):
"""Ensure all futures are resolved
which in turn triggers cleanup
"""
for f in (info_future, iopub_future):
if not f.done():
f.set_result(None)

def cleanup(f=None):
def cleanup(_=None):
"""Common cleanup"""
loop.remove_timeout(nudge_handle)
iopub_channel.stop_on_recv()
Expand Down Expand Up @@ -360,7 +360,7 @@ async def _register_session(self):
await stale_handler.close()
self._open_sessions[self.session_key] = self

async def open(self, kernel_id):
def open(self, kernel_id):
super(ZMQChannelsHandler, self).open()
km = self.kernel_manager
km.notify_connect(kernel_id)
Expand Down

0 comments on commit 3d2be0f

Please sign in to comment.