관리-도구
편집 파일: transport.cpython-311.pyc
� �܋f�H � �� � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m Z d dlmZm Z mZmZ d dlmZ d dlmZmZmZ d dlmZ erRd d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ d dlm Z d dlm!Z! d dl"m#Z# d dl"m$Z$ d dlm%Z%m&Z& ee' Z( d dl)m*Z* n# e+$ r d dl,m*Z* Y nw xY w G d� de-� � Z.dd�Z/ G d� de.� � Z0 G d� de.� � Z1d� Z2dS )� )�print_functionN)�datetime� timedelta)�defaultdict)�Dsn�logger�capture_internal_exceptions� json_dumps)�BackgroundWorker)�Envelope�Item� PayloadRef)� TYPE_CHECKING)�Any)�Callable)�Dict)�Iterable)�Optional)�Tuple)�Type)�Union)�DefaultDict)�PoolManager)�ProxyManager)�Event�EndpointType)� getproxiesc �T � e Zd ZdZdZ dd�Zd� Zd� Z dd�Zd� Z dd�Z d � Zd � ZdS ) � TransportzWBaseclass for all transports. A transport is used to send an event to sentry. Nc �~ � || _ |r,|d �$|d rt |d � � | _ d S d | _ d S )N�dsn)�optionsr � parsed_dsn)�selfr"