
    $j                         d dl Z d dlZ	 d dlmZ 	 d dlmZ y# e$ r d ZY w xY w# e$ r  G d dej
                        ZY yw xY w)    N)	decoratorc                       fd}|S )z Turns caller into a decorator.
        Unlike decorator module, function signature is not preserved.

        :param caller: caller(f, *args, **kwargs)
        c                 F     t        j                          fd       }|S )Nc                       g| i |S N )argskwargscallerfs     P/var/www/oz-panel.ru/ozpay-pub/venv/lib/python3.12/site-packages/retry/compat.pywrapperz)decorator.<locals>.decor.<locals>.wrapper   s    a1$1&11    )	functoolswraps)r   r   r   s   ` r   decorzdecorator.<locals>.decor   s#    __Q2  2Nr   r   )r   r   s   ` r   r   r      s    	
 r   )NullHandlerc                       e Zd Zd Zy)r   c                      y r   r   )selfrecords     r   emitzNullHandler.emit   s    r   N)__name__
__module____qualname__r   r   r   r   r   r      s    	r   r   )r   loggingr   ImportErrorr   Handlerr   r   r   <module>r      sQ     # #!  "  goo s    & ##AA