AlkantarClanX12

Your IP : 18.118.193.223


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

�
��Yc@@s�ddlmZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
mZdZejd�Zd	�Ze�Zd
efd��YZdS(i(tabsolute_importN(tPY2t	text_type(t
InvalidDsn(t	to_string(t	parse_qslturlparses(Unsupported Sentry DSN scheme: {0} ({1})travencC@ssddlm}ddlm}dtjkrOdtjkrOtjd�|Sdtjkrotjd�|S|S(	Ni(tThreadedHTTPTransport(t
HTTPTransporttCURRENT_VERSION_IDtINSTANCE_IDsODetected environment to be Google App Engine. Using synchronous HTTP transport.tLAMBDA_TASK_ROOTsHDetected environment to be AWS Lambda. Using synchronous HTTP transport.(traven.transport.threadedRtraven.transport.httpR	tostenvirontloggertinfo(RR	((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pytdiscover_default_transports

tRemoteConfigcB@s\eZddddddd�Zd�Zd�Zd�Zd�Zeddd��Z	RS(cC@s}|r(|jd�}d||f}nd}||_||_||_||_|p[i|_||_|pst|_	dS(Nt/s%s/api/%s/store/(
trstriptNonetbase_urltprojectt
public_keyt
secret_keytoptionststore_endpointtDEFAULT_TRANSPORTt_transport_cls(tselfRRRRt	transportRR((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyt__init__(s					cC@s
t|j�S(N(RR(R ((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyt__unicode__9scC@s"t|j|j|j|jg�S(N(tallRRRR(R ((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyt	is_active<scC@s;|js
dSt|d�s4|j|j�|_n|jS(Nt
_transport(RthasattrRRR&(R ((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyt
get_transport?s
	cC@sRt|j�}|j}|jr5|d|j7}nd|j||j|jfS(Ns:%ss//%s@%s%s/%s(RRthostnametportRtpathR(R turltnetloc((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pytget_public_dsnGs
		c
C@s�trt|�}nt|j��}|jdkrFtjd�n|dkr�|s}ddlm	}m
}||�}n|j|j�s�tt
j|j|���n|j|j�}n|j}|jr�|d|j7}n|jjdd�}t|�dkr|d}	nd	}	|d
}
t||
|j|jg�sctd|j���nd|jjd
d�d
||	f}|d|d|
d|jd|jdtt|j��d|�S(NthttpthttpssnTransport selection via DSN is deprecated. You should explicitly pass the transport class to Client() instead.i(tTransportRegistrytdefault_transportss:%sRiti����sInvalid Sentry DSN: %rs	%s://%s%st+RRRRRR!(R/R0(RRRtstriptschemetwarningstwarnRtraven.transportR1R2tsupported_schemeRtERR_UNKNOWN_SCHEMEtformattget_transport_clsR)R*R+trsplittlenR$tusernametpasswordtgeturltdictRtquery(tclstvalueR!ttransport_registryR,R1R2R-t	path_bitsR+RR((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pytfrom_stringNs<		

&		N(
t__name__t
__module__RR"R#R%R(R.tclassmethodRI(((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyR's					(t
__future__RtloggingRR7traven.utils.compatRRtraven.exceptionsRtraven.utils.encodingRtraven.utils.urlparseRRR;t	getLoggerRRRtobjectR(((sB/opt/alt/python27/lib/python2.7/site-packages/raven/conf/remote.pyt<module>s