B
bN @ sT d Z ddlZyddlZW n ek
r4 edY nX eedsHeddd 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.pythonapic C s~ t |tjtfstdt | ts*tdtjt | t
|}|dkrVtdn$|dkrztjt | d tddS )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 integerr zinvalid thread id z PyThreadState_SetAsyncExc failedN)
isinstancetypesZ ClassTypetype TypeErrorintctypesr ZPyThreadState_SetAsyncExcc_long py_object
ValueErrorSystemError)tidexctyperes r F/opt/alt/python37/lib/python3.7/site-packages/paste/util/killthread.pyasync_raise s
r )__doc__r r ImportErrorhasattrr r r r r <module> s