Your IP : 3.133.153.224


Current Path : /opt/alt/python27/lib/python2.7/site-packages/raven/transport/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyc

�
��Yc@@s�dZddlmZddlmZddlmZyNddlZyddlm	Z	Wn!e
k
r|ddlm	Z	nXeZ
Wne
k
r�dZ
nXdeefd��YZdS(	s�
raven.transport.gevent
~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i(tabsolute_import(tAsyncTransport(t
HTTPTransportN(t	SemaphoretGeventedHTTPTransportcB@s2eZddgZdd�Zd�Zd�ZRS(sgevent+httpsgevent+httpsidcO@sAtstd��nt|�|_tt|�j||�dS(Ns&GeventedHTTPTransport requires gevent.(t
has_geventtImportErrorRt_locktsuperRt__init__(tselftmaximum_outstanding_requeststargstkwargs((sG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyR	sc@sG�jj�tjtt��j|||�j���fd��S(s?
        Spawn an async request to a remote webserver.
        c@s�j|���S(N(t_done(tx(t
failure_cbR
t
success_cb(sG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyt<lambda>.t(RtacquiretgeventtspawnRRtsendtlink(R
turltdatatheadersRR((RR
RsG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyt
async_send%s
cG@s4|jj�|j�r#|�n
||j�dS(N(Rtreleaset
successfult	exception(R
tgreenletRRR((sG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyR0s

(t__name__t
__module__tschemeR	RR(((sG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyRs	(t__doc__t
__future__Rtraven.transport.baseRtraven.transport.httpRRtgevent.lockRRtgevent.corostTrueRtNoneR(((sG/opt/alt/python27/lib/python2.7/site-packages/raven/transport/gevent.pyt<module>s





?>