o
    wÖiÝ  ã                   @   s<   d dl Z dd„ Zz	d dlmZ W dS  ey   eZY dS w )é    Nc                    s   ‡ fdd„}|S )z”Turns caller into a decorator.
    Unlike decorator module, function signature is not preserved.

    :param caller: caller(f, *args, **kwargs)
    c                    s   t  ˆ ¡‡‡ fdd„ƒ}|S )Nc                     s   ˆ ˆg| ¢R i |¤ŽS )N© )ÚargsÚkwargs)ÚcallerÚfr   úK/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/reretry/compat.pyÚwrapper   s   z0simple_decorator.<locals>.decor.<locals>.wrapper)Ú	functoolsÚwraps)r   r   ©r   )r   r   Údecor   s   zsimple_decorator.<locals>.decorr   )r   r   r   r   r   Úsimple_decorator   s   r   )Ú	decorator)r	   r   r   ÚImportErrorr   r   r   r   Ú<module>   s    
ÿ