o
    Zh                     @   sZ   d Z ddlZddlmZmZ ddlZddlmZ ejde	dd G d	d
 d
eZ
d
gZdS )zZAP 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.
    N)AnyOptional   )AsyncioAuthenticatorz\zmq.auth.ioloop.IOLoopAuthenticator is deprecated. Use zmq.auth.asyncio.AsyncioAuthenticator   
stacklevelc                	       s@   e Zd ZdZ				dded dededef fd	d
Z  ZS )IOLoopAuthenticatorz0ZAP authentication for use in the tornado IOLoopNutf-8contextzzmq.Contextencodinglogio_loopc                    sD   d }|d urt j| jj dtdd |j}t j||||d d S )Nz#(io_loop) is deprecated and ignoredr   r   )r   r   r   loop)warningswarn	__class____name__DeprecationWarningZasyncio_loopsuper__init__)selfr   r   r   r   r   r    F/var/www/html/lang_env/lib/python3.10/site-packages/zmq/auth/ioloop.pyr      s   zIOLoopAuthenticator.__init__)Nr
   NN)	r   
__module____qualname____doc__r   strr   r   __classcell__r   r   r   r   r	      s    r	   )r   r   typingr   r   ZzmqZasyncior   r   r   r	   __all__r   r   r   r   <module>   s    	
