ok
Direktori : /opt/alt/python37/lib/python3.7/site-packages/raven/conf/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/conf/__pycache__/remote.cpython-37.pyc |
B ��Y � @ s� d dl mZ d dlZd dlZd dlZd dlmZmZ d dlm Z d dl mZ d dlm Z mZ dZe�d�Zd d � Ze� ZG dd� de�ZdS ) � )�absolute_importN)�PY2� text_type)� InvalidDsn)� to_string)� parse_qsl�urlparsez(Unsupported Sentry DSN scheme: {0} ({1})Zravenc C sV ddl m} ddlm} dtjkr:dtjkr:t�d� |S dtjkrRt�d� |S | S ) Nr )�ThreadedHTTPTransport)� HTTPTransportZCURRENT_VERSION_IDZINSTANCE_IDzODetected environment to be Google App Engine. Using synchronous HTTP transport.ZLAMBDA_TASK_ROOTzHDetected environment to be AWS Lambda. Using synchronous HTTP transport.)Zraven.transport.threadedr Zraven.transport.httpr �os�environ�logger�info)r r � r �B/opt/alt/python37/lib/python3.7/site-packages/raven/conf/remote.py�discover_default_transport s r c @ sD e Zd Zddd�Zdd� Zdd� Zdd � Zd d� Zeddd ��Z dS )�RemoteConfigNc C sV |r|� d�}d||f }nd }|| _|| _|| _|| _|p>i | _|| _|pNt| _d S )N�/z%s/api/%s/store/) �rstrip�base_url�project� public_key� secret_key�options�store_endpoint�DEFAULT_TRANSPORT�_transport_cls)�selfr r r r � transportr r r r r �__init__( s zRemoteConfig.__init__c C s t | j�S )N)r r )r r r r �__unicode__9 s zRemoteConfig.__unicode__c C s t | j| j| j| jg�S )N)�allr r r r )r r r r � is_active<