Skip to content

Commit 4cdeaf5

Browse files
committed
Put deprecated import in deprecated method
1 parent 81d7cf3 commit 4cdeaf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/ioloop/restarter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import warnings
1111

1212
from traitlets import Instance
13-
from zmq.eventloop import ioloop
1413

1514
from jupyter_client.restarter import KernelRestarter
1615
from jupyter_client.utils import run_sync
@@ -27,6 +26,7 @@ def _loop_default(self):
2726
DeprecationWarning,
2827
stacklevel=4,
2928
)
29+
from zmq.eventloop import ioloop
3030
return ioloop.IOLoop.current()
3131

3232
_pcallback = None

0 commit comments

Comments
 (0)