add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation

��g7csn�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�isfutureiN)�GenericAlias�)�base_futures)�events)�
exceptions)�format_helperscs[�XoOoOojOoXoOoOoOo	Oo
OoOoOo
OoOO,OgoOoOoXX1oXO	1oXM.O
1oOoOoOO
goOoOoOoOoOoOO,Ogo Oo!Oo"Oo#Oo$X$o%Oo&Qo'd)ria�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�loopcs��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�
_callbacksZ	get_debugrZ
extract_stack�sysZ	_getframe�_source_traceback��selfr	�  �(/usr/lib64/python3.14/asyncio/futures.py�__init__ZFuture.__init__Gs\���<��.�.�0�D�J��J�����:�:���!�!�%3�%A�%A��
�
�a� �&"�D�"�"�cs.�WMQ1!�N)rZ_future_repr�r� r�__repr__ZFuture.__repr__Ws���(�(��.�.rcs��QM%adQMkOQMMO/OQOQ,kQM%^QMQO$QM
M
Q1d)NZmessagez exception was never retrieved�	exception�futureZsource_traceback)�_Future__log_traceback�
_exceptionZ	__class__�__name__rrZcall_exception_handler)r�exc�context�   r�__del__ZFuture.__del__Zsq���#�#�
��o�o����>�>�*�*�+�+I�J����d�	
���!�!�*.�*@�*@�G�&�'��
�
�)�)�'�2rcs�QM!r)rrrr�_log_traceback�Future._log_tracebackls���#�#�#rcs6�Q%^WO1bOQid)Nz'_log_traceback can only be set to FalseF)Z
ValueErrorr)rZvalrrr"r#ps����F�G�G�$��rcs:�QMkQ`WO1bQ!)z-Return the event loop the Future is bound to.z!Future object is not initialized.)r�RuntimeErrorrrr�get_loopZFuture.get_loopvs!���z�z���<��B�C�C��rcs��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)rrrr�_make_cancelled_errorZFuture._make_cancelled_error}sf�����*��%�%�C�"&�D���J����'��+�+�-�C��
��+�+�D�,@�,@�A�C��
rcs~�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)rZmsgrr�cancelZ
Future.cancel�s7�� %����;�;�(�"�� ���"���!�!�#�rcs��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)rr�	call_soon)rZ	callbacksZcallback�ctx�    rZ__schedule_callbacksZFuture.__schedule_callbacks�sI���O�O�A�&�	���������&�M�H��J�J� � ��� �=�'rcs(�QMW6H!)z(Return True if the future was cancelled.)r*r,rrr�	cancelledZFuture.cancelled�s���{�{�j�(�(rcs(�QMW6g!)z�Return True if the future is done.

Done means either that a result / exception are available, or that the
future was cancelled.
)r*r+rrr�doneZFuture.done�s���{�{�h�&�&rcs(�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)r*r,r)�	_FINISHEDr�InvalidStateErrorrr�with_traceback�
_exception_tb�_resultrrr�resultZ
Future.result�st���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/E�F�F�$����?�?�&��/�/�0�0��1C�1C�D�D��|�|�rcs��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)r*r,r)r6rr7rrrrrrZFuture.exception�sO���;�;�*�$��,�,�.�.��;�;�)�#��.�.�/F�G�G�$������rrcs��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.
r0N)r*r+rr1�contextvarsZcopy_contextrZappend)r�fnrr r�add_done_callbackZFuture.add_done_callback�sN���;�;�(�"��J�J� � ��7� �;���%�2�2�4���O�O�"�"�B�=�1rcs��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.
r/)rZlen)rr=Zfr2Zfiltered_callbacksZ
removed_counts      r�remove_done_callbackZFuture.remove_done_callback�sh��/3�o�o�*�.=�(�1�!"��'�q�h�.=�	�*��D�O�O�,�s�3E�/F�F�
��!3�O�O�A�����
*s
�
A �A cs��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)r*r+rr7r:r6r-)rr;rr�
set_resultZFuture.set_result�sH���;�;�(�"��.�.�$�+�+��b���/I�J�J�������!�!�#rcs~�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.
r@zPStopIteration interacts badly with generators and cannot be raised into a FutureTN)r*r+rr7�
isinstance�typeZ
StopIterationr$Z	__cause__Z__context__r�
__traceback__r9r6r-r)rrZnew_excr r�
set_exceptionZFuture.set_exceptions����;�;�(�"��.�.�$�+�+��b���/I�J�J��i��&�&�!��I��i��/�/�"�$,�-�G�!*��"+���I�#��&�4�4�������!�!�#�#��rc#s� �QM1%aOQiQs�QM1%aWO1bQM1!3c)NTzawait wasn't used with future)r5�_asyncio_future_blockingr$r;rrr�	__await__ZFuture.__await__s@����y�y�{�{�,0�D�)��J��y�y�{�{��>�?�?��{�{�}��s�AA)Z__log_tracebackrFrr'r&rr9rr:rr*r)(rZ
__module__Z__qualname__Z__firstlineno__�__doc__r+r*r:rrrr'r&rFrrrr!ZclassmethodrZ__class_getitem__Zpropertyr"Zsetterr%r)r.r-r4r5r;rr>r?rArErGZ__iter__Z__static_attributes__Z__classdictcell__)Z
__classdict__s@rrrs������$�F��G��J��E����O��N� %���O�"�t�"� /�3� $�L�1��
�$��$����%��%�
��"
�>�)�'�� 
�2�t�2� �
$�$�.��Hrrcs`�QMkQ1!W^QM!c9cr)r%ZAttributeErrorr)�futr%rr�	_get_looprJ)s:����<�<���z����
���9�9��	
�s��
-�-csR�QM1%^dQMQ1d)z?Helper setting the result only if the future was not cancelled.N)r4rA)rIr;rr�_set_result_unless_cancelledrK5s��
�}�}�����N�N�6�rcsh�WQ1kQWMMG^6WMQM
2M
QM1!QWMMG^6WMQM
2M
QM1!Q!r)	rC�
concurrent�futuresr(rZargsr8rDr7)rZ	exc_classrr�_convert_future_excrN<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��
rcsN�QM1%aNbQM1%^QM1QM1%adQM	1kQ_QM
W
Q11dQM1kQMQ1d)z8Copy state from a future to a concurrent.futures.Future.N)	r5r4r.Zset_running_or_notify_cancelrrErNr;rA)rL�sourcerr;r3r�_set_concurrent_future_staterPFs����;�;�=�=��=�
����������2�2�4�4��� � �"�I���� � �!4�Y�!?�@���������f�%rcsv�QM1%aNbQM1%^dQM1%^NbQM1%^QM1dQM1kQ_QM	WQ11dQM
1kQMQ1d)ziInternal helper to copy state from another Future.

The other Future may be a concurrent.futures.Future.
N)r5r4r.rrErNr;rA)rOZdestrr;r3r�_copy_future_staterQUs���
�;�;�=�=��=��~�~�����y�y�{�{��?�
��������
��$�$�&�	�� ����2�9�=�>��]�]�_�F��O�O�F�#rcs�[[[[[�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 argumentNcsR�WQ1%^WT1dWT1dr)rrQrP)rZotherrr�
_set_stateZ!_chain_future.<locals>._set_stateys���F����u�-�(��7rcs�:�QM1%^5P_PPG^PM1dPMPM1ddr)r4r.�call_soon_threadsafe)�destination�	dest_looprO�source_loops ���r�_call_check_cancelZ)_chain_future.<locals>._call_check_cancels?���� � �"�"��"�k�Y�&>��
�
���0�0����?�	#rcs�:�PM1%^P_PM1%^dP_PPG^
PPQ1dPM1%^dPMPPQ1dr)r4Z	is_closedrS)rOrRrUrTrVs ����r�_call_set_stateZ&_chain_future.<locals>._call_set_state�sd����!�!�#�#��%�)�*=�*=�*?�*?����	�[� 8��{�F�+��"�"�$�$���*�*�:�{�F�Kr)rrBrLrMrZ	TypeErrorrJr>)rOrTrWrXrRrUrVs``  @@@r�
_chain_futurerYis�����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�
���_�-rr	cs��WQ1%^Q!WQWMM1%aNOQ8/1bQ`W
M1kQM1kWT1Q!)z&Wrap concurrent.futures.Future object.z+concurrent.futures.Future is expected, got )	rrBrLrMrrr
Z
create_futurerY)rr	Z
new_futurer rrr�ss�������
��f�j�0�0�7�7�8�8�A�
5�f�Z�@�A�8��|��$�$�&���#�#�%�J��&�%��r) rHZ__all__Zconcurrent.futuresrLr<Zloggingr
ZtypesrZrrrrrr+r,r6ZDEBUGZSTACK_DEBUGrZ	_PyFuturerJrKrNrPrQrYrZ_asyncioZ_CFutureZImportError)rr�<module>rZs���4������
������� � ��� � ��
�
$�
$�
��"�"�	��m�m�a���D�D�P
�	�	���&�$�().�X
��
�(��
!���'�F�X��	�	��	�s�B+�+B4�3B4