관리-도구
편집 파일: threaded_requests.cpython-37.pyc
B ��YF � @ sJ d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� dee�Z dS ) z� raven.transport.threaded_requests ~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_import)�AsyncTransport)�RequestsHTTPTransport)�AsyncWorkerc s4 e Zd ZddgZdd� Z� fdd�Zdd� Z� ZS ) �ThreadedRequestsHTTPTransportzthreaded+requests+httpzthreaded+requests+httpsc C s t | d�st� | _| jS )N�_worker)�hasattrr r )�self� r �R/opt/alt/python37/lib/python3.7/site-packages/raven/transport/threaded_requests.py� get_worker s z(ThreadedRequestsHTTPTransport.get_workerc sN yt t| ��|||� W n* tk rB } z||� W d d }~X Y nX |� d S )N)�superr �send� Exception)r �url�data�headers� success_cb� failure_cb�e)� __class__r r � send_sync s z'ThreadedRequestsHTTPTransport.send_syncc C s | � � �| j|||||� d S )N)r �queuer )r r r r r r r r r � async_send s z(ThreadedRequestsHTTPTransport.async_send)�__name__� __module__�__qualname__�schemer r r � __classcell__r r )r r r s r N) �__doc__� __future__r Zraven.transport.baser Zraven.transportr Zraven.transport.threadedr r r r r r �<module> s