HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pyc
�
b�Nc@smdZddlZyddlZWnek
rAed��nXeed�s`ed��nd�ZdS(sB
Kill a thread, from http://sebulba.wikispaces.com/recipe+thread2
i����Ns=You cannot use paste.util.killthread without ctypes installedt	pythonapis=You cannot use paste.util.killthread without ctypes.pythonapicCs�t|tjtf�s'td��nt|t�sEtd��ntjjtj	|�tj
|��}|dkr�td��n7|dkr�tjjtj	|�d�td��ndS(s�raises the exception, performs cleanup if needed.

    tid is the value given by thread.get_ident() (an integer).
    Raise SystemExit to kill a thread.s(Only types can be raised (not instances)stid must be an integerisinvalid thread idis PyThreadState_SetAsyncExc failedN(
t
isinstancettypest	ClassTypettypet	TypeErrortinttctypesRtPyThreadState_SetAsyncExctc_longt	py_objectt
ValueErrortSystemError(ttidtexctypetres((sF/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pytasync_raises'(t__doc__RRtImportErrorthasattrR(((sF/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pyt<module>s