Skip to content

Commit

Permalink
Fix for jupyter#62
Browse files Browse the repository at this point in the history
Jupyter brings in latest tornado version 6.0.1 and it breaks Jupyter Terminal due to removing
of gen.Task in earlier version, https://www.tornadoweb.org/en/stable/releases/v6.0.0.html
  • Loading branch information
Chiplunkar committed Mar 15, 2019
1 parent 7fde385 commit e19fc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminado/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def terminate(self, force=False):
signal.SIGTERM]

loop = IOLoop.current()
sleep = lambda : gen.Task(loop.add_timeout, loop.time() + self.ptyproc.delayafterterminate)
sleep = lambda : gen.sleep(self.ptyproc.delayafterterminate)

if not self.ptyproc.isalive():
raise gen.Return(True)
Expand Down

0 comments on commit e19fc5f

Please sign in to comment.