• File: killthread.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/killthread.cpython-37.pyc
  • Date Modified: 12/01/2019 7:09 PM
  • File size: 1.14 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

bN@sTdZddlZyddlZWnek
r4edYnXeedsHedddZdS)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|tjtfstdt|ts*tdtjt	|t
|}|dkrVtdn$|dkrztjt	|dtddS)zraises 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 idz PyThreadState_SetAsyncExc failedN)
isinstancetypesZ	ClassTypetype	TypeErrorintctypesrZPyThreadState_SetAsyncExcc_long	py_object
ValueErrorSystemError)tidexctyperesrF/opt/alt/python37/lib/python3.7/site-packages/paste/util/killthread.pyasync_raises

r)__doc__rr	ImportErrorhasattrrrrrr<module>s