add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
3

�
�^�c@sxdZdddddddgZdZeZifd
d�Zdd�Zdd�Zd
d�Zddd�Z	dd�Z
Gdd�de�Zda
dadd�ZdS)a/Drop-in replacement for the thread module.

Meant to be used as a brain-dead substitute so that threaded code does
not need to be rewritten for when the thread module is not present.

Suggested usage is::

    try:
        import _thread
    except ImportError:
        import _dummy_thread as _thread

�error�start_new_thread�exit�	get_ident�
allocate_lock�interrupt_main�LockTypeiicCs�t|�tt��krtd��t|�tt��kr4td��day|||�Wn.tk
rZYnddl}|j�YnXdatr�dat	�dS)a�Dummy implementation of _thread.start_new_thread().

    Compatibility is maintained by making sure that ``args`` is a
    tuple and ``kwargs`` is a dictionary.  If an exception is raised
    and it is SystemExit (which can be done by _thread.exit()) it is
    caught and nothing is done; all other exceptions are printed out
    by using traceback.print_exc().

    If the executed function calls interrupt_main the KeyboardInterrupt will be
    raised when the function returns.

    z2nd arg must be a tuplez3rd arg must be a dictF�NT)
ZtypeZtupleZ	TypeErrorZdict�_main�
SystemExit�	tracebackZ	print_exc�
_interrupt�KeyboardInterrupt)ZfunctionZargsZkwargsr
�r
�%/usr/lib64/python3.6/_dummy_thread.pyrs 
cCst�dS)z'Dummy implementation of _thread.exit().N)r	r
r
r
rr=�cCsdS)z�Dummy implementation of _thread.get_ident().

    Since this module should only be used when _threadmodule is not
    available, it is safe to assume that the current process is the
    only thread.  Thus a constant can be safely returned.
    ������r
r
r
r
rrAscC�t�S)z0Dummy implementation of _thread.allocate_lock().�rr
r
r
rrJrNcCs|dk	rtd��dS)z-Dummy implementation of _thread.stack_size().Nz'setting thread stack size not supportedr)r)Zsizer
r
r�
stack_sizeNsrcCr)z0Dummy implementation of _thread._set_sentinel().rr
r
r
r�
_set_sentinelTrrc@sFeZdZdZdd�Zddd�ZeZdd	�Zd
d�Zdd
�Z	dd�Z
dS)ra�Class implementing dummy implementation of _thread.LockType.

    Compatibility is maintained by maintaining self.locked_status
    which is a boolean that stores the state of the lock.  Pickling of
    the lock, though, should not be done since if the _thread module is
    then used with an unpickled ``lock()`` from here problems could
    occur from this class not having atomic methods.

    cCs
d|_dS)NF��
locked_status��selfr
r
r�__init__c�zLockType.__init__NrcCsH|dks|rd|_dS|js&d|_dS|dkr@ddl}|j|�dSdS)a�Dummy implementation of acquire().

        For blocking calls, self.locked_status is automatically set to
        True and returned appropriately based on value of
        ``waitflag``.  If it is non-blocking, then the value is
        actually checked and not set if it is already acquired.  This
        is all done so that threading.Condition's assert statements
        aren't triggered and throw a little fit.

        NTrF)r�timeZsleep)rZwaitflagZtimeoutrr
r
r�acquirefs
zLockType.acquirecCs|j�dS�N)�release)rZtypZvalZtbr
r
r�__exit__�rzLockType.__exit__cCs|js
t�d|_dS)zRelease the dummy lock.FT)rrrr
r
rr�szLockType.releasecCs|jSrrrr
r
r�locked�rzLockType.lockedcCs*d|jrdnd|jj|jjtt|��fS)Nz<%s %s.%s object at %s>r!Zunlocked)rZ	__class__�
__module__�__qualname__ZhexZidrr
r
r�__repr__�s
zLockType.__repr__r)Nr)Z__name__r"r#�__doc__rrZ	__enter__r rr!r$r
r
r
rrXs	
	FTcCstr
t�ndadS)z^Set _interrupt flag to True to have start_new_thread raise
    KeyboardInterrupt upon exiting.TN)rrrr
r
r
rr�slr)r%Z__all__ZTIMEOUT_MAXZRuntimeErrorrrrrrrrZobjectrrrrr
r
r
rZ<module>
s
 	
@