Your IP : 3.138.34.93


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/eventlet.pyc

�
��Yc@@s�dZddlmZddlZddlmZyNddlZyddlmZ	Wn!e
k
rxddlmZ	nXe
ZWne
k
r�eZnXdefd��YZdS(	s�
raven.transport.eventlet
~~~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i(tabsolute_importN(t
HTTPTransport(turllib2(trequesttEventletHTTPTransportcB@s2eZddgZdd�Zd�Zd�ZRS(s
eventlet+httpseventlet+httpsidcK@s/tstd��ntt|�j|�dS(Ns(EventletHTTPTransport requires eventlet.(thas_eventlettImportErrortsuperRt__init__(tselft	pool_sizetkwargs((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/eventlet.pyRscC@s�|\}}}tj|d|�}yPtjdkrQtj||�j�}ntj|||j�j�}|SWntk
r�}|SXdS(Ntheadersii(ii(teventlet_urllib2tRequesttsystversion_infoturlopentreadttimeoutt	Exception(R	tpayloadturltdataRtreqtresponseterr((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/eventlet.pyt
_send_payload"scC@s tj|j|||f�dS(s?
        Spawn an async request to a remote webserver.
        N(teventlettspawnR(R	RRR((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/eventlet.pytsend/s(t__name__t
__module__tschemeRRR(((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/eventlet.pyRs	
(t__doc__t
__future__RRtraven.transport.httpRRteventlet.greenRR
Rteventlet.green.urllibRtTrueRtFalseR(((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/eventlet.pyt<module>s





?>