File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -258,9 +258,7 @@ def _schedule_flush(self):
258258
259259 # add_timeout has to be handed to the io thread with add_callback
260260 def _schedule_in_thread ():
261- # FIXME: call_later is a little nicer, if we can require tornado ≥ 4
262- self ._flush_timeout = self ._io_loop .add_timeout (
263- self ._io_loop .time () + self .flush_interval , self ._flush )
261+ self ._flush_timeout = self ._io_loop .call_later (self .flush_interval , self ._flush )
264262 self ._io_loop .add_callback (_schedule_in_thread )
265263
266264 def flush (self ):
Original file line number Diff line number Diff line change 8383 'ipython>=4.0.0' ,
8484 'traitlets' ,
8585 'jupyter_client' ,
86+ 'tornado>=4.0' ,
8687]
8788
8889extras_require = setuptools_args ['extras_require' ] = {
You can’t perform that action at this time.
0 commit comments