AlkantarClanX12
Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/ |
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/_dummy_thread.cpython-33.pyc |
� ��f� c @ s� d Z d d d d d d d g Z d Z e Z i d d � Z d d � Z d d � Z d d � Z d d d � Z Gd d � d e � Z d a d a d d � Z d S( u/ 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 u erroru start_new_threadu exitu get_identu allocate_locku interrupt_mainu LockTypei i c C s� t | � t t � � k r* t d � � n t | � t t � � k rT t d � � n d a y | | | � Wn/ t k r Yn d d l } | j � Yn Xd a t r� d a t � n d S( u� 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. u 2nd arg must be a tupleu 3rd arg must be a dicti NFT( u typeu tupleu TypeErroru dictu Falseu _mainu SystemExitu tracebacku print_excu Trueu _interruptu KeyboardInterrupt( u functionu argsu kwargsu traceback( ( u2 /opt/alt/python33/lib64/python3.3/_dummy_thread.pyu start_new_thread s c C s t � d S( u'