%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/utils/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.9/site-packages/ansible/utils/__pycache__/lock.cpython-39.opt-1.pyc

a

�)gn�@s2ddlmZmZmZeZddlmZddd�ZdS)�)�absolute_import�division�print_function��wraps�missing_lock_attrNcs��fdd�}|S)aoThis decorator is a generic implementation that allows you
    to either use a pre-defined instance attribute as the location
    of the lock, or to explicitly pass a lock object.

    This code was implemented with ``threading.Lock`` in mind, but
    may work with other locks, assuming that they function as
    context managers.

    When using ``attr``, the assumption is the first argument to
    the wrapped method, is ``self`` or ``cls``.

    Examples:

        @lock_decorator(attr='_callback_lock')
        def send_callback(...):

        @lock_decorator(lock=threading.Lock())
        def some_method(...):
    cst�����fdd��}|S)NcsR�durt|d��}n�}|��|i|��Wd�S1sD0YdS)Nr)�getattr)�args�kwargs�_lock)�attr�func�lock��6/usr/lib/python3.9/site-packages/ansible/utils/lock.py�inner s
z,lock_decorator.<locals>.outer.<locals>.innerr)r
r�rr)r
r�outers	zlock_decorator.<locals>.outerr)rrrrrr�lock_decoratorsr)rN)	Z
__future__rrr�typeZ
__metaclass__�	functoolsrrrrrr�<module>s

Zerion Mini Shell 1.0