PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/zmq/auth/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/zmq/auth/ioloop.py |
"""ZAP Authenticator integrated with the tornado IOLoop. .. versionadded:: 14.1 .. deprecated:: 25 Use asyncio.AsyncioAuthenticator instead. Since tornado runs on asyncio, the asyncio authenticator offers the same functionality in tornado. """ import warnings # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. from typing import Any, Optional import zmq from .asyncio import AsyncioAuthenticator warnings.warn( "zmq.auth.ioloop.IOLoopAuthenticator is deprecated. Use zmq.auth.asyncio.AsyncioAuthenticator", DeprecationWarning, stacklevel=2, ) class IOLoopAuthenticator(AsyncioAuthenticator): """ZAP authentication for use in the tornado IOLoop""" def __init__( self, context: Optional["zmq.Context"] = None, encoding: str = 'utf-8', log: Any = None, io_loop: Any = None, ): loop = None if io_loop is not None: warnings.warn( f"{self.__class__.__name__}(io_loop) is deprecated and ignored", DeprecationWarning, stacklevel=2, ) loop = io_loop.asyncio_loop super().__init__(context=context, encoding=encoding, log=log, loop=loop) __all__ = ['IOLoopAuthenticator']