add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation

��g]Pcs`�OoOoOOFoOOFoOOFEoOOFEoOO1oO	O
XXM1o	OOXM1o
O
OXXM1oOOXXM1oOOX1o
OOXM1oOOXM1od)zSynchronization primitives.)�Lock�Event�	Condition�	Semaphore�BoundedSemaphore�Barrier�N�)�
exceptions)�mixinscs*[�XoOoOojOoOoOoQod)�_ContextManagerMixinic�s@ �QM1DOes�I
dI3c�N)�acquire��self� �&/usr/lib64/python3.14/asyncio/locks.py�
__aenter__Z_ContextManagerMixin.__aenter__
s����l�l�n����	�s���c�s, �QM1d3cr)�release)rZexc_typeZexcZtb�    r�	__aexit__Z_ContextManagerMixin.__aexit__s�������s��N)�__name__�
__module__�__qualname__�__firstlineno__rr�__static_attributes__�__classdictcell__)�
__classdict__s@rr
r
s������r
c�T[[�XoOoOojOoOoQ0OgoOoOoOo	Oo
O	oQoQ9o
!)
ria�Primitive lock objects.

A primitive lock is a synchronization primitive that is not owned
by a particular task when locked.  A primitive lock is in one
of two states, 'locked' or 'unlocked'.

It is created in the unlocked state.  It has two basic methods,
acquire() and release().  When the state is unlocked, acquire()
changes the state to locked and returns immediately.  When the
state is locked, acquire() blocks until a call to release() in
another task changes it to unlocked, then the acquire() call
resets it to locked and returns.  The release() method should only
be called in the locked state; it changes the state to unlocked
and returns immediately.  If an attempt is made to release an
unlocked lock, a RuntimeError will be raised.

When more than one task is blocked in acquire() waiting for
the state to turn to unlocked, only one task proceeds when a
release() call resets the state to unlocked; successive release()
calls will unblock tasks in FIFO order.

Locks also support the asynchronous context management protocol.
'async with lock' statement should be used.

Usage:

    lock = Lock()
    ...
    await lock.acquire()
    try:
        ...
    finally:
        lock.release()

Context manager usage:

    lock = Lock()
    ...
    async with lock:
         ...

Lock objects can be tested for locking state:

    if not lock.locked():
       await lock.acquire()
    else:
       # lock is acquired
       ...

cs �OQiOQid�NF)�_waiters�_lockedr
rr�__init__Z
Lock.__init__Ks����
���rc�:�WPQZ1kQM%^OJOkQM%^QOW	QM1/kOQOOQO/!�N�lockedZunlocked�
, waiters:�<�ri����N� [�]>)�super�__repr__r!r �len�rZresZextra�	__class__�   �rr,Z
Lock.__repr__OsW����g�� �� �L�L��j���=�=��g�Z��D�M�M�(:�';�<�E��3�t�9�+�R��w�b�)�)rc��QM!)z Return True if lock is acquired.)r!r
rrr%ZLock.lockedVs���|�|�rc�sn �QM%a6QM_!WOQM11%^OQidQM`WM1QiQM1M
1kQMMQ1QDOes�I
QMMQ1OQidI'QMMQ1c9cWM^#QM%aQM1bc9c3c)ziAcquire a lock.

This method blocks until the lock is unlocked, then sets it to
locked and returns True.
Nc3s> �QClM1s�H	d3cr��	cancelled�Z.0Zw�  r�	<genexpr>ZLock.acquire.<locals>.<genexpr>cs���9�=�a�K�K�M�M�=�s�T)r!r Zall�collections�deque�	_get_loop�
create_future�append�remover�CancelledError�_wake_up_first�r�futr5rrZLock.acquireZs�������$�-�-�"7��9�4�=�=�9�9�9��D�L���=�=� �'�-�-�/�D�M��n�n��,�,�.���
�
���S�!�
	�
*��	�	��
�
�$�$�S�)��������
�
�$�$�S�)���(�(�	��<�<��#�#�%��	�sB�B(D5�,C�1C�2C�6C;�D5�C�C8�8C;�;7D2�2D5csj�QM%^OQiQM1dWO1b)aRelease a lock.

When the lock is locked, reset it to unlocked, and return.
If any other tasks are blocked waiting for the lock to become
unlocked, allow exactly one of them to proceed.

When invoked on an unlocked lock, a RuntimeError is raised.

There is no return value.
FzLock is not acquired.N)r!r>�RuntimeErrorr
rrrZLock.releases*���<�<� �D�L����!��6�7�7rcs��QM%adWWQM11kQM	1%aQMO1ddW^dc9c)z*Ensure that the first waiter will wake up.NT)r ZnextZiterZ
StopIteration�done�
set_resultr?r5rr>ZLock._wake_up_first�sV���}�}��	��t�D�M�M�*�+�C�
�x�x�z�z��N�N�4� ���	�	��	�s�A�
A'�&A')r!r )rrrr�__doc__r"r,r%rrr>rr�
__classcell__�r/r�@@rrrs/����1�f�*��#�J8�"!�!rrcr)
ri�aAsynchronous equivalent to threading.Event.

Class implementing event objects. An event manages a flag that can be set
to true with the set() method and reset to false with the clear() method.
The wait() method blocks until the flag is true. The flag is initially
false.
csF�WM1QiOQidr)r7r8r �_valuer
rrr"ZEvent.__init__�s��#�)�)�+��
���rcr#)N�setZunsetr&r'r(r)r*)r+r,rHr r-r.r0rr,ZEvent.__repr__�sW����g�� ������'���=�=��g�Z��D�M�M�(:�';�<�E��3�t�9�+�R��w�b�)�)rcr1)z5Return True if and only if the internal flag is true.�rHr
rr�is_setZEvent.is_set�s���{�{�rcs��QM%aCOQiQMC+kQM1%^HQMO1H-	dd)z�Set the internal flag to true. All tasks waiting for it to
become true are awakened. Tasks that call wait() once the flag is
true will not block at all.
TN)rHr rBrCr?r5rrIZ	Event.set�s<��
�{�{��D�K��}�}���x�x�z�z��N�N�4�(�%�rcs�OQid)z�Reset the internal flag to false. Subsequently, tasks calling
wait() will block until set() is called to set the internal flag
to true again.FNrJr
rr�clearZEvent.clear�s����rc�s4 �QM%^dQM1M1kQMM	Q1QDOes�I
QMMQ1dI!QMMQ1c9c3c)z�Block until the internal flag is true.

If the internal flag is true on entry, return True
immediately.  Otherwise, block until another task calls
set() to set the flag to true, then return True.
TN)rHr9r:r r;r<r?r5r�waitZ
Event.wait�ss����;�;���n�n��,�,�.���
�
���S�!�	&��I�I���M�M� � ��%�
��
�M�M� � ��%�s0�AB�A8�A6�A8�B�6A8�8B�B�rHr )rrrrrDr"r,rKrIrLrMrrrErFrGrrr�s-������*��
)��&�&rrcsb[[�XoOoOojOoOOgoQ0OgoOoOoOOgo	Oo
O	oO
oQo
Q9o!)
ri�aAsynchronous equivalent to threading.Condition.

This class implements condition variable objects. A condition variable
allows one or more tasks to wait until they are notified by another
task.

A new Lock object is created and used as the underlying lock.
cs��Q`
W1kTiQMQiQMQiQMQiW
M1Qidr)r�_lockr%rrr7r8r )rZlockr5rr"ZCondition.__init__�sD���<��6�D��
��k�k����|�|����|�|���#�)�)�+��
rcs�:�WPQZ1kQM1%^OJOkQM%^QOW	QM1/kOQOOQO/!r$)r+r,r%r r-r.r0rr,ZCondition.__repr__�s[����g�� �� �K�K�M�M��z���=�=��g�Z��D�M�M�(:�';�<�E��3�t�9�+�R��w�b�)�)rc�s� �QM1%aWO1bQM1M1kQM	1QM
M
Q1QDOes�I
QM
MQ1OkQM1DOes�I
Q_QbdIDIWM^
kQkOk=HBOk=cc9cOkc9cQM
MQ1c9cOkQM1DOes�I
J$WM^
kQkOk=H8Ok=cc9cQ_
QbOkc9cc9cW^QMO1bc9c3c)a�Wait until notified.

If the calling task has not acquired the lock when this
method is called, a RuntimeError is raised.

This method releases the underlying lock, and then blocks
until it is awakened by a notify() or notify_all() call for
the same condition variable in another task.  Once
awakened, it re-acquires the lock and returns True.

This method may return spuriously,
which is why the caller should always
re-check the state and be prepared to wait() again.
zcannot wait on un-acquired lockNTr)
r%rAr9r:rr r;r<rrr=Z
BaseException�_notify)rr@ZerrZerrrMZCondition.wait�sk����{�{�}�}��@�A�A��n�n��,�,�.������!	�
#��
�
�$�$�S�)�.��I�I���M�M�(�(��-���� �"�l�l�n�,�,���?�#�!�	�#�#�-��%�4�4� ���� ��#���%�M�M�(�(��-����� �"�l�l�n�,�,���%�4�4� ���� ���?�#�!�	��"���	#��
�	�
�L�L��O��	�s��AE<�D�/C(�4B9�5C(�:D�E�B=�,B;�-B=�1E�6C!�8E<�9C(�;B=�=C�C�E�C�E�!C%�%E�(D�D�E�
D'� D#�!D'�&E�'E�;E�=E�E�E�E�E�E�E�E9�9E<c�sp �Q1kQ%a!QM1DOes�I
Q1kH(Q!I3c)z�Wait until a predicate becomes true.

The predicate should be a callable whose result will be
interpreted as a boolean value.  The method will repeatedly
wait() until it evaluates to true.  The final predicate value is
the return value.
N�rM)rZ	predicateZresults   r�wait_forZCondition.wait_for/s1��������)�)�+����[�F��
�
�s�"6�4�6csf�QM1%aWO1bQMQ1d)a�By default, wake up one task waiting on this condition, if any.
If the calling task has not acquired the lock when this method
is called, a RuntimeError is raised.

This method wakes up n of the tasks waiting for the condition
 variable; if fewer than n are waiting, they are all awoken.

Note: an awakened task does not actually return from its
wait() call until it can reacquire the lock. Since notify() does
not release the lock, its caller should.
z!cannot notify on un-acquired lockN)r%rArP)r�nr5r�notifyZCondition.notify=s&���{�{�}�}��B�C�C����Q�rcs��OkQMC7kT!6�^dQM1%^H!QO*
kQMO1H9	d)NrrF)r rBrC)rrSZidxr@rrrPZCondition._notifyMs=�����=�=�C��x���8�8�:�:��q������u�%�
!rcsL�QMWQM11d)z�Wake up all tasks waiting on this condition. This method acts
like notify(), but wakes up all waiting tasks instead of one. If the
calling task has not acquired the lock when this method is called,
a RuntimeError is raised.
N)rTr-r r
rr�
notify_allZCondition.notify_allWs��	
���C��
�
�&�'r)rOr rr%rr�r)rrrrrDr"r,rMrRrTrPrUrrrErFrGrrr�s3�����
,�*�5�n�� &�(�(rrcsX[[�XoOoOojOoO
OgoQ0OgoOoOoOo	Oo
O	oQoQ9o
!)ri`a�A Semaphore implementation.

A semaphore manages an internal counter which is decremented by each
acquire() call and incremented by each release() call. The counter
can never go below zero; when acquire() finds that it is zero, it blocks,
waiting until some other thread calls release().

Semaphores also support the context management protocol.

The optional argument gives the initial value for the internal
counter; it defaults to 1. If the value given is less than 0,
ValueError is raised.
cs@�QO6^WO1bOQiTid)Nrz$Semaphore initial value must be >= 0)�
ValueErrorr rH)r�valuer5rr"ZSemaphore.__init__os!���1�9��C�D�D���
��rcs�:�WPQZ1kQM1%^OJOQM/kQM%^QOWQM1/kOQOOQO/!)Nr%zunlocked, value:r&r'r(r)r*)r+r,r%rHr r-r.r0rr,ZSemaphore.__repr__usg����g�� �� �K�K�M�M��1A�$�+�+��/O���=�=��g�Z��D�M�M�(:�';�<�E��3�t�9�+�R��w�b�)�)rcsx�QMO6H9%a%WOQM9%aO11!)z9Returns True if semaphore cannot be acquired immediately.rc3sH �QClM1%(s�H	d3crr2r4r5rr6Z#Semaphore.locked.<locals>.<genexpr>�s���A�,?�a�K�K�M�!�!�,?�s� "r)rHZanyr r
rrr%ZSemaphore.locked|s6���{�{�a��C��A�D�M�M�,?�R�,?�A�A�	Crc�s �QM1%aQ9MO*pidQM`WM1QiQM1M
1kQMMQ1QDOes�I
QMMQ1QMO6�^QM1%^H'ddIKQMMQ1c9cWM^AQM1%^*QM1%aQ9MO*
pibc9cQMO6�^QM1%^H'cc9c3c)aAcquire a semaphore.

If the internal counter is larger than zero on entry,
decrement it by one and return True immediately.  If it is
zero on entry, block, waiting until some other task has
called release() to make it larger than 0, and then return
True.
rTNr)r%rHr r7r8r9r:r;r<rr=rBr3�
_wake_up_nextr?r5rrZSemaphore.acquire�s,����{�{�}�}��K�K�1��K���=�=� �'�-�-�/�D�M��n�n��,�,�.���
�
���S�!�	�
*��	�	��
�
�$�$�S�)��+�+��/��)�)�+�+���"��'���
�
�$�$�S�)���(�(�	��x�x�z�z�#�-�-�/�/�
���q� ���	���+�+��/��)�)�+�+��"�s[�BF�C#�C!�C#�D�6#F�F�!C#�#D�D�AE�E�$F�F�FcsN�Q9MO*
piQM1d)z�Release a semaphore, incrementing the internal counter by one.

When it was zero on entry and another task is waiting for it to
become larger than zero again, wake up that task.
rN)rHrYr
rrrZSemaphore.release�s��	
���q������rcs��QM%adQMC@kQM1%^HQ9MO*piQMO1d	d)z)Wake up the first waiter that isn't done.FrT)r rBrHrCr?r5rrYZSemaphore._wake_up_next�sG���}�}���=�=�C��8�8�:�:����q� �����t�$��!�rrNrV)rrrrrDr"r,r%rrrYrrrErFrGrrr`s/������*�C�(�T��rrcsF[[�XoOoOojOoOQ0OggoQ0OgoOoQoQ9o	!)ri�z�A bounded semaphore implementation.

This raises ValueError in release() if it would increase the value
above the initial value.
cs0:�TiWPQZ	Q1dr)�_bound_valuer+r")rrXr/s  �rr"ZBoundedSemaphore.__init__�s���!��
����rcsl:�QMQM6�^WO1bWPQZ1d)Nz(BoundedSemaphore released too many times)rHrZrWr+r)rr/s �rrZBoundedSemaphore.release�s+����;�;�$�+�+�+��G�H�H�
���r)rZrV)
rrrrrDr"rrrrErFrGrrr�s����� ��rrcs$�XoOoOoOoOoOoOoOod)�
_BarrierStatei�ZfillingZdrainingZ	resetting�brokenrN)	rrrr�FILLING�DRAINING�	RESETTING�BROKENrrrrr[r[�s���G��H��I�
�Frr[cs�[[�XoOoOojOoOoQ0OgoOoOoOo	Oo
O	oO
oOo
OoO
oXO1oXO1oXO1oOoQoQ9o!)ri�z�Asyncio equivalent to threading.Barrier

Implements a Barrier primitive.
Useful for synchronizing a fixed number of tasks at known synchronization
points. Tasks block on 'wait()' and are simultaneously awoken once they
have all made their call.
cs��QO6^WO1bW1QiTiWM
QiOQid)z1Create a barrier, initialised to 'parties' tasks.rzparties must be > 0rN)rWr�_cond�_partiesr[r]�_state�_count)r�partiesr5rr"ZBarrier.__init__�s7���Q�;��2�3�3��[��
��
�#�+�+�����rcs�:�WPQZ1kQMMkQM%aQOQM
OQM/*
kOQOOQO/!)Nr&Z/r'r(r)r*)r+r,rcrXr\�	n_waitingrer.r0rr,ZBarrier.__repr__�sb����g�� ���;�;�$�$�%���{�{��z�$�.�.�!1��4�<�<�.�A�A�E��3�t�9�+�R��w�b�)�)rc�s> �QM1DOes�I
!I3crrQr
rrrZBarrier.__aenter__�s����Y�Y�[� � � �s���c�s �d3crr)rZargsr5rrZBarrier.__aexit__�s����s�c�sP �QM9YppY1DOes�I
QM1DOes�I
QMkQ9MO*
piQO*QM6X^QM	1DOes�I
JQM1DOes�I
QQ9MO*piQM
1ppOOO1DOes�I
!I�I�IZICI
Q9MO*piQM
1c9c)DOes�I
%acd9c3c)z�Wait for the barrier.

When the specified number of tasks have started waiting, they are all
simultaneously awoken.
Returns an unique and individual index number from 0 to 'parties-1'.
Nr)ra�_blockrdrb�_release�_wait�_exit)rZindexr5rrMZBarrier.wait�s�����:�:�:�:��+�+�-���
��������q� ���1�9��
�
�-��-�-�/�)�)��*�*�,�&�&�����q� ���
�
���:�:��*�&������q� ���
�
����:�:�s��D&�C�D&�D�C�D�AC!�C�C!�C�C!�%D�
D&�C�D&�D�C!�C!�D&�!'D�D�D#	�D�D#	�D&c�s�[ �PMMQ0Og1DOes�I
PMWMG^W
MO1bdI83c)Ncs^:�PMWMWM07!r)rcr[r^r_r
��r�<lambda>Z Barrier._block.<locals>.<lambda>s$���D�K�K��&�&�
�(?�(?�(�rzBarrier aborted)rarRrcr[r`r�BrokenBarrierErrorr
�`rrgZBarrier._blocksY�����j�j�!�!�
�
�	
�	
��;�;�-�.�.�.��/�/�0A�B�B�/�	
�s�#A!�A�9A!c�sj �WMQiQMM	1d3cr)r[r^rcrarUr
rrrhZBarrier._release&s$���
$�,�,����
�
����s�13c�s�[ �PMMQ0Og1DOes�I
PMWMWM
07^WMO1bdII3c)Ncs<:�PMWMG!r)rcr[r]r
rkrrlZBarrier._wait.<locals>.<lambda>4s���$�+�+�]�=R�=R�*RrzAbort or reset of barrier)rarRrcr[r`r_rrmr
rnrriZ
Barrier._wait.s\�����j�j�!�!�"R�S�S�S��;�;�=�/�/��1H�1H�I�I��/�/�0K�L�L�J�	T�s�#A2�A0�A
A2cs��QMO6X^^QMWMWM07^WM
QiQMM1dd)Nr)rdrcr[r_r^r]rarUr
rrrjZ
Barrier._exit9sO���;�;�!���{�{�}�6�6�
�8N�8N�O�O�+�3�3����J�J�!�!�#�rc�s� �QM9YppY1DOes�I
QMO6�^3QMWMG^WMQiJWM
QiQMM
1OOO1DOes�I
dI�I)DOes�I
%acd9c3c)zrReset the barrier to the initial state.

Any tasks currently waiting will get the BrokenBarrier exception
raised.
Nr)rardrcr[r_r]rUr
rr�resetZ
Barrier.resetAsi����:�:�:�:��{�{�Q���;�;�m�&=�&=�=�"/�"9�"9�D�K��+�3�3����J�J�!�!�#��:�:�:�:�:�sE�C�B#�C�A3B'�C�B%�C�%C�'B?	�-B0�.B?	�:Cc�s �QM9YppY1DOes�I
WMQiQMM	1OOO1DOes�I
dIDI)DOes�I
%acd9c3c)z�Place the barrier into a 'broken' state.

Useful in case of error.  Any currently waiting tasks and tasks
attempting to 'wait()' will have BrokenBarrierError raised.
N)rar[r`rcrUr
rr�abortZ
Barrier.abortPs>����:�:�:�:�'�.�.�D�K��J�J�!�!�#��:�:�:�:�:�sD�A?�A �A?�0A$�A?�A"�A?�"A?�$A<	�*A-�+A<	�7A?cr1)z8Return the number of tasks required to trip the barrier.)rbr
rrreZBarrier.partiesZs���}�}�rcsV�QMWMG^QM!d)z<Return the number of tasks currently waiting at the barrier.r)rcr[r]rdr
rrrfZBarrier.n_waiting_s#���;�;�-�/�/�/��;�;��rcs:�QMWMG!)z0Return True if the barrier is in a broken state.)rcr[r`r
rrr\ZBarrier.brokenfs���{�{�m�2�2�2�2r)rardrbrc)rrrrrDr"r,rrrMrgrhrirjrorpZpropertyrerfr\rrrErFrGrrr�s������	�*�!�

��.C�  �	M�$�
$�$����������3��3�3rr)rDZ__all__r7ZenumZrr	r
Z_LoopBoundMixinrrrrrZEnumr[rrrr�<module>rqs���!�*��������D!���!7�!7�D!�N:&�F�"�"�:&�zB(�$�f�&<�&<�B(�J`�$�f�&<�&<�`�F�y��$�D�I�I��M3�f�$�$�M3r