ok

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/raven/transport/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/transport/__pycache__/registry.cpython-37.pyc

B

��Y.
�@s�dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZddlmZddlmZGd
d�de�Zeee
eeeeegZdS)z�
raven.transport.registry
~~~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
�)�absolute_import)�EventletHTTPTransport)�DuplicateScheme)�
HTTPTransport)�GeventedHTTPTransport)�RequestsHTTPTransport)�ThreadedHTTPTransport)�ThreadedRequestsHTTPTransport)�TwistedHTTPTransport)�TornadoHTTPTransport)�urlparsec@s>eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�TransportRegistryNcCs,i|_i|_|r(x|D]}|�|�qWdS)N)�_schemes�_transports�register_transport)�selfZ
transports�	transport�r�I/opt/alt/python37/lib/python3.7/site-packages/raven/transport/registry.py�__init__s

zTransportRegistry.__init__cCsDt|d�rt|jd�s$td|jj��x|jD]}|�||�q,WdS)N�scheme�__iter__z$Transport %s must have a scheme list)�hasattrr�AttributeError�	__class__�__name__�register_scheme)rrrrrrr!sz$TransportRegistry.register_transportcCs(||jkrt��t�|�||j|<dS)zA
        It is possible to inject new schemes at runtime
        N)rrrr)rr�clsrrrr(s

z!TransportRegistry.register_schemecCs
||jkS)N)r)rrrrr�supported_scheme3sz"TransportRegistry.supported_schemecKsJ|��}||jkr@t�|�d�d�}|j|j|f|�|j|<|j|S)N�?r)Zgeturlrr�splitrr)rZ
parsed_urlZoptionsZfull_urlrrr�
get_transport6s

zTransportRegistry.get_transportcCs
|j|S)N)r)rrrrr�get_transport_cls>sz#TransportRegistry.get_transport_cls)N)	r�
__module__�__qualname__rrrrr!r"rrrrr
s
	r
N)�__doc__Z
__future__rZraven.transport.eventletrZraven.transport.exceptionsrZraven.transport.httprZraven.transport.geventrZraven.transport.requestsrZraven.transport.threadedrZ!raven.transport.threaded_requestsr	Zraven.transport.twistedr
Zraven.transport.tornadorZraven.utilsr�objectr
Zdefault_transportsrrrr�<module>s(,

Zerion Mini Shell 1.0