• File: thread.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyo
  • Date Modified: 04/28/2020 3:42 PM
  • File size: 2.49 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

ӵ Yc@sWdZddlZddlZddljZddlmZdefdYZ	dS(s*Module containing the SessionThread class.iNi(tqueuet
SessionThreadcBs>eZdZdZdZdZdZdZRS(cCs2||_||_|j||_||_dS(N(t_sessiont_jobst_create_workert
_responsest_exceptions(tselftinitialized_sessiont	job_queuetresponse_queuetexception_queue((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyt__init__s
		
	cCsMtjd|jdtj|_t|j_d|j_|jj	dS(Nttargettnamei(
t	threadingtThreadt
_make_requesttuuidtuuid4t_workertTruetdaemont_statetstart(R((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyRs		cCstz_y|jj|}Wn,tjk
rG}|jj||fnX|jj||fWd|jjXdS(N(	RtrequesttexctRequestExceptionRtputRRt	task_done(Rtkwargstresponsete((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyt_handle_requestscCsIxBtrDy|jj}Wntjk
r3PnX|j|qWdS(N(RRt
get_nowaitRtEmptyR!(RR((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyR&s	cCs
|jjS(s*Proxy to the thread's ``is_alive`` method.(Rtis_alive(R((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyR$/scCs|jjdS(s&Join this thread to the master thread.N(Rtjoin(R((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyR%3s(t__name__t
__module__RRR!RR$R%(((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyR
s				
			(
t__doc__RRtrequests.exceptionst
exceptionsRt_compatRtobjectR(((sE/usr/lib/python2.7/site-packages/requests_toolbelt/threaded/thread.pyt<module>s