관리-도구
편집 파일: eventlet.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlZddlmZ ddlZ ddlmZ n# e $ r ddlmZ Y nw xY wdZ n # e $ r dZ Y nw xY w G d � d e� � ZdS )z� raven.transport.eventlet ~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)� HTTPTransport)�urllib2)�requestTFc �4 � � e Zd ZddgZd� fd� Zd� Zd� Z� xZS )�EventletHTTPTransportz eventlet+httpzeventlet+https�d c �t �� t st d� � � t t | � � j di |�� d S )Nz(EventletHTTPTransport requires eventlet.� )�has_eventlet�ImportError�superr �__init__)�self� pool_size�kwargs� __class__s ��O/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/transport/eventlet.pyr zEventletHTTPTransport.__init__ sE �� �� J��H�I�I�I�3��#�T�*�*�3�=�=�f�=�=�=�=�=� c �< � |\ }}}t j ||�� � } t j dk r(t j ||� � � � � }n-t j ||| j � � � � � }|S # t $ r}|cY d }~S d }~ww xY w)N)�headers)� � )�eventlet_urllib2�Request�sys�version_info�urlopen�read�timeout� Exception)r �payload�url�datar �req�response�errs r � _send_payloadz#EventletHTTPTransport._send_payload"