Skip to content

Commit 14ee10f

Browse files
authored
Merge pull request #426 from martindurant/import
fix dask import
2 parents 529bb7e + ee620d4 commit 14ee10f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

streamz/core.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
from tornado.locks import Condition
1515
from tornado.ioloop import IOLoop
1616
from tornado.queues import Queue
17-
try:
18-
from tornado.ioloop import PollIOLoop
19-
except ImportError:
20-
PollIOLoop = None # dropped in tornado 6.0
2117

2218
try:
2319
from distributed.client import default_client as _dask_default_client
@@ -1995,11 +1991,6 @@ def sync(loop, func, *args, **kwargs):
19951991
"""
19961992
# This was taken from distrbuted/utils.py
19971993

1998-
# Tornado's PollIOLoop doesn't raise when using closed, do it ourselves
1999-
if PollIOLoop and ((isinstance(loop, PollIOLoop) and getattr(loop, '_closing', False))
2000-
or (hasattr(loop, 'asyncio_loop') and loop.asyncio_loop._closed)):
2001-
raise RuntimeError("IOLoop is closed")
2002-
20031994
timeout = kwargs.pop('callback_timeout', None)
20041995

20051996
e = threading.Event()

0 commit comments

Comments
 (0)