ioloop.py 766 B

12345678910111213141516171819202122232425262728293031323334353637
  1. """tornado IOLoop API with zmq compatibility
  2. This module is deprecated in pyzmq 17.
  3. To use zmq with tornado,
  4. eventloop integration is no longer required
  5. and tornado itself should be used.
  6. """
  7. # Copyright (C) PyZMQ Developers
  8. # Distributed under the terms of the Modified BSD License.
  9. import warnings
  10. def _deprecated():
  11. warnings.warn(
  12. "zmq.eventloop.ioloop is deprecated in pyzmq 17."
  13. " pyzmq now works with default tornado and asyncio eventloops.",
  14. DeprecationWarning,
  15. stacklevel=3,
  16. )
  17. _deprecated()
  18. from tornado.ioloop import * # noqa
  19. from tornado.ioloop import IOLoop
  20. ZMQIOLoop = IOLoop
  21. def install():
  22. """DEPRECATED
  23. pyzmq 17 no longer needs any special integration for tornado.
  24. """
  25. _deprecated()