Your IP : 3.133.126.241


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

�
��Yc@@s�dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZddlmZddlmZd
efd��YZeee
eeeeegZdS(s�
raven.transport.registry
~~~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i(tabsolute_import(tEventletHTTPTransport(tDuplicateScheme(t
HTTPTransport(tGeventedHTTPTransport(tRequestsHTTPTransport(tThreadedHTTPTransport(tThreadedRequestsHTTPTransport(tTwistedHTTPTransport(tTornadoHTTPTransport(turlparsetTransportRegistrycB@sAeZdd�Zd�Zd�Zd�Zd�Zd�ZRS(cC@s=i|_i|_|r9x|D]}|j|�qWndS(N(t_schemest_transportstregister_transport(tselft
transportst	transport((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyt__init__s
		
cC@sct|d�s#t|jd�r;td|jj��nx!|jD]}|j||�qEWdS(Ntschemet__iter__s$Transport %s must have a scheme list(thasattrRtAttributeErrort	__class__t__name__tregister_scheme(RRR((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyR!s#cC@s9||jkrt��ntj|�||j|<dS(sA
        It is possible to inject new schemes at runtime
        N(RRR
R(RRtcls((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyR(s
cC@s
||jkS(N(R(RR((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pytsupported_scheme3scK@se|j�}||jkrZtj|jd�d�}|j|j||�|j|<n|j|S(Nt?i(tgeturlR
R
tsplitRR(Rt
parsed_urltoptionstfull_url((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyt
get_transport6s
#cC@s|j|S(N(R(RR((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pytget_transport_cls>sN(	Rt
__module__tNoneRRRRR"R#(((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyRs					N(t__doc__t
__future__Rtraven.transport.eventletRtraven.transport.exceptionsRtraven.transport.httpRtraven.transport.geventRtraven.transport.requestsRtraven.transport.threadedRt!raven.transport.threaded_requestsRtraven.transport.twistedRtraven.transport.tornadoR	traven.utilsR
tobjectRtdefault_transports(((sI/opt/alt/python27/lib/python2.7/site-packages/raven/transport/registry.pyt<module>s(,

?>