add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation

��g7��n�OoOoOOFoOOFoOOFoOOFoOOFEoOOF	E
o
OOF	EoOOF	EoOO	F	E
o
X
MoX
MoX
M oX
M"oXM$O*
oO
O1oXoOoO
oOoOoOoOoOO,OgoOOFoXM(9oodX^dc9c)z.A Future class similar to the one in PEP 3148.)�Future�wrap_future�isfuture�N)�GenericAlias�)�base_futures)�events)�
exceptions)�format_helpersc�[�XoOoOojOoXoOoOoOo	Oo
OoOoOo
OoOO,OgoOoOoXX1oXO	1oXM.O
1oOoOoOO
goOoOoOoOoOoOO,Ogo Oo!Oo"Oo#Oo$X$o%Oo&Qo'd)r�a�This class is *almost* compatible with concurrent.futures.Future.

Differences:

- This class is not thread-safe.

- result() and exception() do not take a timeout argument and
  raise an exception when the future isn't done yet.

- Callbacks registered with add_done_callback() are always called
  via the event loop's call_soon().

- This class is not compatible with the wait() and as_completed()
  methods in the concurrent.futures package.

NF�loopc���Q`WM1QiJTi+QiQMM	1%^0W
MWMO11Qi	dd)z�Initialize the future.

The optional event_loop argument allows explicitly setting the event
loop object used by the future. If it's not provided, the future uses
the default event loop.
Nr)
r	�get_event_loop�_loop�
_callbacks�	get_debugr�
extract_stack�sys�	_getframe�_source_traceback��selfrs  �(/usr/lib64/python3.14/asyncio/futures.py�__init__�Future.__init__Gs\���<��.�.�0�D�J��J�����:�:���!�!�%3�%A�%A��
�
�a� �&"�D�"�"�c�.�WMQ1!�N)r�_future_repr�rs r�__repr__�Future.__repr__Ws���(�(��.�.rc���QM%adQMkOQMMO/OQOQ,kQM%^QMQO$QM
M
Q1d)N�messagez exception was never retrieved�	exception�future�source_traceback)�_Future__log_traceback�
_exception�	__class__�__name__rr�call_exception_handler)r�exc�contexts   r�__del__�Future.__del__Zsq���#�#�
��o�o����>�>�*�*�+�+I�J����d�	
���!�!�*.�*@�*@�G�&�'��
�
�)�)�'�2rc��QM!r)r)r!s r�_log_traceback�Future._log_tracebackls���#�#�#rc�6�Q%^WO1bOQid)Nz'_log_traceback can only be set to FalseF)�
ValueErrorr))r�vals  rr3r4ps����F�G�G�$��rc�:�QMkQ`WO1bQ!)z-Return the event loop the Future is bound to.z!Future object is not initialized.)r�RuntimeErrorrs  r�get_loop�Future.get_loopvs!���z�z���<��B�C�C��rc���QM_QMkOQiQ!QM`WM1kQ!WMQM1kQ!)z�Create the CancelledError to raise if the Future is cancelled.

This should only be called once when handling a cancellation since
it erases the saved context exception value.
N)�_cancelled_exc�_cancel_messager
�CancelledError)rr.s  r�_make_cancelled_error�Future._make_cancelled_error}sf�����*��%�%�C�"&�D���J����'��+�+�-�C��
��+�+�D�,@�,@�A�C��
rc�~�OQiQMW6w^dWQiTiQM1d)z�Cancel the future and schedule callbacks.

If the future is already done or cancelled, return False.  Otherwise,
change the future's state to cancelled, schedule the callbacks and
return True.
FT)r)�_state�_PENDING�
_CANCELLEDr>�_Future__schedule_callbacks)r�msgs  r�cancel�
Future.cancel�s7�� %����;�;�(�"�� ���"���!�!�#�rc��QMOkQ%ad+QMO$QC"rm#QMMT QO5H$	d)z�Internal: Ask the event loop to call all callbacks.

The callbacks are scheduled to be called as soon as possible. Also
clears the callback list.
�NNNN�r/)rr�	call_soon)r�	callbacks�callback�ctxs    r�__schedule_callbacks�Future.__schedule_callbacks�sI���O�O�A�&�	���������&�M�H��J�J� � ��� �=�'rc�(�QMW6H!)z(Return True if the future was cancelled.)rCrEr!s r�	cancelled�Future.cancelled�s���{�{�j�(�(rc�(�QMW6g!)z�Return True if the future is done.

Done means either that a result / exception are available, or that the
future was cancelled.
)rCrDr!s r�done�Future.done�s���{�{�h�&�&rc�(�QMW6X^QM1bQMW6w^WM
O1bOQiQM_%QMMQM1bQM!)z�Return the result this future represents.

If the future has been cancelled, raises CancelledError.  If the
future's result isn't yet available, raises InvalidStateError.  If
the future is done and has an exception set, this exception is raised.
zResult is not ready.F)rCrEr@�	_FINISHEDr
�InvalidStateErrorr)r*�with_traceback�
_exception_tb�_resultr!s r�result�
Future.result�st���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/E�F�F�$����?�?�&��/�/�0�0��1C�1C�D�D��|�|�rc���QMW6X^QM1bQMW6w^WM
O1bOQiQM!)z�Return the exception that was set on this future.

The exception (or None if no exception was set) is returned only if
the future is done.  If the future has been cancelled, raises
CancelledError.  If the future isn't done yet, raises
InvalidStateError.
zException is not set.F)rCrEr@rZr
r[r)r*r!s rr&�Future.exception�sO���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/F�G�G�$������rr/c���QMW6w^QMMTQO5dQ`WM
1kQMMT01d)z�Add a callback to be run when the future becomes done.

The callback is called with a single argument - the future object. If
the future is already done when this is called, the callback is
scheduled with call_soon.
rLN)rCrDrrM�contextvars�copy_contextr�append)r�fnr/s   r�add_done_callback�Future.add_done_callback�sN���;�;�(�"��J�J� � ��7� �;���%�2�2�4���O�O�"�"�B�=�1rc���QMRRp+pCrm#T!6waHT#0KH	kkkWQM1WQ1*
kQ%^T@MO$Q!ppkkc)zmRemove all instances of a callback from the "call when done" list.

Returns the number of callbacks removed.
rK)r�len)rrg�frP�filtered_callbacks�
removed_counts      r�remove_done_callback�Future.remove_done_callback�sh��/3�o�o�*�.=�(�1�!"��'�q�h�.=�	�*��D�O�O�,�s�3E�/F�F�
��!3�O�O�A�����
*s
�
A �A c��QMW6w^&WMQMOQ8/1bTiW
QiQM
1d)z~Mark the future done and set its result.

If the future is already done when this method is called, raises
InvalidStateError.
�: N)rCrDr
r[r^rZrF)rr_s  r�
set_result�Future.set_result�sH���;�;�(�"��.�.�$�+�+��b���/I�J�J�������!�!�#rc�~�QMW6w^&WMQMOQ8/1bW	QW
1%^Q1kW	QW1%^WO1kTiTi	QkTi
QMQiWQiQM1OQid)z�Mark the future done and set an exception.

If the future is already done when this method is called, raises
InvalidStateError.
rrzPStopIteration interacts badly with generators and cannot be raised into a FutureTN)rCrDr
r[�
isinstance�type�
StopIterationr9�	__cause__�__context__r*�
__traceback__r]rZrFr))rr&�new_excs   r�
set_exception�Future.set_exceptions����;�;�(�"��.�.�$�+�+��b���/I�J�J��i��&�&�!��I��i��/�/�"�$,�-�G�!*��"+���I�#��&�4�4�������!�!�#�#��rc#� �QM1%aOQiQs�QM1%aWO1bQM1!3c)NTzawait wasn't used with future)rW�_asyncio_future_blockingr9r_r!s r�	__await__�Future.__await__s@����y�y�{�{�,0�D�)��J��y�y�{�{��>�?�?��{�{�}��s�AA)�__log_tracebackr�rr>r=r*r]rr^rrCr)(r,�
__module__�__qualname__�__firstlineno__�__doc__rDrCr^r*rrr>r=r�r)rr"r0�classmethodr�__class_getitem__�propertyr3�setterr:r@rHrFrTrWr_r&rhrorsr}r��__iter__�__static_attributes__�__classdictcell__)�
__classdict__s@rrrs������$�F��G��J��E����O��N� %���O�"�t�"� /�3� $�L�1��
�$��$����%��%�
��"
�>�)�'�� 
�2�t�2� �
$�$�.��Hrrc�`�QMkQ1!W^QM!c9cr)r:�AttributeErrorr)�futr:s  r�	_get_loopr�)s:����<�<���z����
���9�9��	
�s��
-�-c�R�QM1%^dQMQ1d)z?Helper setting the result only if the future was not cancelled.N)rTrs)r�r_s  r�_set_result_unless_cancelledr�5s��
�}�}�����N�N�6�rc�h�WQ1kQWMMG^6WMQM
2M
QM1!QWMMG^6WMQM
2M
QM1!Q!r)	rw�
concurrent�futuresr?r
�argsr\r{r[)r.�	exc_classs  r�_convert_future_excr�<s����S�	�I��J�&�&�5�5�5��(�(�#�(�(�3�B�B�3�CT�CT�U�U�	�j�(�(�:�:�	:��+�+�S�X�X�6�E�E�c�FW�FW�X�X��
rc� �QM1%^QM1QM1%adQM1kQ_QMWQ11dQM
1kQMQ1d)z8Copy state from a future to a concurrent.futures.Future.N)rTrH�set_running_or_notify_cancelr&r}r�r_rs)r��sourcer&r_s    r�_set_concurrent_future_stater�Fsr������������2�2�4�4��� � �"�I���� � �!4�Y�!?�@���������f�%rc��QM1%^dQM1%^QM1dQM1kQ_QMW	Q11dQM1kQM
Q1d)ziInternal helper to copy state from another Future.

The other Future may be a concurrent.futures.Future.
N)rTrHr&r}r�r_rs)r��destr&r_s    r�_copy_future_stater�Usk���~�~����
��������
��$�$�&�	�� ����2�9�=�>��]�]�_�F��O�O�F�#rc��[[[[[�WP1%a4WPWMM1%aWO1bWP1%a4WPWMM1%aWO1bWP1%^W
P1JOjWP1%^W
P1JOjOjQQQ0OgkQQQQ0OgkPMQ1PMQ1d)aChain two futures so that when one completes, so does the other.

The result (or exception) of source will be copied to destination.
If destination is cancelled, source gets cancelled too.
Compatible with both asyncio.Future and concurrent.futures.Future.
z(A future is required for source argumentz-A future is required for destination argumentNc�R�WQ1%^WT1dWT1dr)rr�r�)r'�others  r�
_set_state�!_chain_future.<locals>._set_stateys���F����u�-�(��7rc�:�QM1%^5P_PPG^PM1dPMPM1ddr)rTrH�call_soon_threadsafe)�destination�	dest_loopr��source_loops ���r�_call_check_cancel�)_chain_future.<locals>._call_check_cancels?���� � �"�"��"�k�Y�&>��
�
���0�0����?�	#rc��:�PM1%^P_PM1%^dP_PPG^
PPQ1dPM1%^dPMPPQ1dr)rT�	is_closedr�)r�r�r�r�r�s ����r�_call_set_state�&_chain_future.<locals>._call_set_state�sd����!�!�#�#��%�)�*=�*=�*?�*?����	�[� 8��{�F�+��"�"�$�$���*�*�:�{�F�Kr)rrvr�r�r�	TypeErrorr�rh)r�r�r�r�r�r�r�s``  @@@r�
_chain_futurer�is�����F���J�v�/9�/A�/A�/H�/H�%J�%J��B�C�C��K� � ��K�4>�4F�4F�4M�4M�*O�*O��G�H�H�'/��'7�'7�)�F�#�T�K�*2�;�*?�*?�	�+�&�T�I�8�@�	L�	L��!�!�"4�5�
���_�-rrc��WQ1%^Q!Q`WM1kQM1kW	T1Q!)z&Wrap concurrent.futures.Future object.)rr	r�
create_futurer�)r'r�
new_futures   rrr�sC�������
��|��$�$�&���#�#�%�J��&�%��r) r��__all__�concurrent.futuresr�rd�loggingr�typesr�rr	r
rrrDrErZ�DEBUG�STACK_DEBUGr�	_PyFuturer�r�r�r�r�r�r�_asyncio�_CFuture�ImportError�rr�<module>r�s���4������
������� � ��� � ��
�
$�
$�
��"�"�	��m�m�a���D�D�P
�	�	���&�$�().�X
��
�(��
!���'�F�X��	�	��	�s�B+�+B4�3B4