AIM-PIbd-32-Kurbanova-A-A/aimenv/Lib/site-packages/zmq/eventloop/ioloop.py
2024-10-02 22:15:59 +04:00

38 lines
766 B
Python

"""tornado IOLoop API with zmq compatibility
This module is deprecated in pyzmq 17.
To use zmq with tornado,
eventloop integration is no longer required
and tornado itself should be used.
"""
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import warnings
def _deprecated():
warnings.warn(
"zmq.eventloop.ioloop is deprecated in pyzmq 17."
" pyzmq now works with default tornado and asyncio eventloops.",
DeprecationWarning,
stacklevel=3,
)
_deprecated()
from tornado.ioloop import * # noqa
from tornado.ioloop import IOLoop
ZMQIOLoop = IOLoop
def install():
"""DEPRECATED
pyzmq 17 no longer needs any special integration for tornado.
"""
_deprecated()