Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python3.6/__pycache__/



⬆️ Go up: /lib64/python3.6

πŸ“„ Viewing: _dummy_thread.cpython-36.pyc

3


 \οΏ½οΏ½@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οΏ½LockTypeοΏ½οΏ½cCsοΏ½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)
οΏ½typeοΏ½tupleοΏ½	TypeErrorοΏ½dictοΏ½_mainοΏ½
SystemExitοΏ½	tracebackοΏ½	print_excοΏ½
_interruptοΏ½KeyboardInterrupt)ZfunctionοΏ½argsοΏ½kwargsrοΏ½rοΏ½%/usr/lib64/python3.6/_dummy_thread.pyrs 
cCstοΏ½dS)z'Dummy implementation of _thread.exit().N)rrrrrr=scCsdS)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.
    οΏ½οΏ½οΏ½οΏ½rrrrrrAscCstοΏ½S)z0Dummy implementation of _thread.allocate_lock().)rrrrrrJsNcCs|dk	rtdοΏ½οΏ½dS)z-Dummy implementation of _thread.stack_size().Nz'setting thread stack size not supportedr
)r)οΏ½sizerrrοΏ½
stack_sizeNsrcCstοΏ½S)z0Dummy implementation of _thread._set_sentinel().)rrrrrοΏ½
_set_sentinelTsrc@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)οΏ½selfrrrοΏ½__init__cszLockType.__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.

        NTr
F)rοΏ½timeZsleep)rZwaitflagZtimeoutr!rrrοΏ½acquirefs
zLockType.acquirecCs|jοΏ½dS)N)οΏ½release)rοΏ½typοΏ½valοΏ½tbrrrοΏ½__exit__οΏ½szLockType.__exit__cCs|js
tοΏ½d|_dS)zRelease the dummy lock.FT)rr)rrrrr#οΏ½szLockType.releasecCs|jS)N)r)rrrrοΏ½lockedοΏ½szLockType.lockedcCs*d|jrdnd|jj|jjtt|οΏ½οΏ½fS)Nz<%s %s.%s object at %s>r(Zunlocked)rοΏ½	__class__οΏ½
__module__οΏ½__qualname__οΏ½hexοΏ½id)rrrrοΏ½__repr__οΏ½s
zLockType.__repr__r)Nr)οΏ½__name__r*r+οΏ½__doc__r r"οΏ½	__enter__r'r#r(r.rrrrrXs	
	FTcCstr
tοΏ½ndadS)z^Set _interrupt flag to True to have start_new_thread raise
    KeyboardInterrupt upon exiting.TN)rrrrrrrrοΏ½sl)N)r0οΏ½__all__οΏ½TIMEOUT_MAXοΏ½RuntimeErrorrrrrrrrοΏ½objectrrrrrrrrοΏ½<module>
s
 	
@


πŸ“