Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
raven
/
transport
/
__pycache__
/
File Content:
gevent.cpython-37.opt-1.pyc
B ��Yz � @ s� d Z ddlmZ ddlmZ ddlmZ yBddlZyddlm Z W n e k rb ddlm Z Y nX dZW n e k r� dZY nX G dd � d ee�Z dS ) z� raven.transport.gevent ~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_import)�AsyncTransport)� HTTPTransportN)� SemaphoreTc s: e Zd ZddgZd � fdd� Z� fdd�Zdd � Z� ZS )�GeventedHTTPTransportzgevent+httpzgevent+https�d c s, t std��t|�| _tt| �j||� d S )Nz&GeventedHTTPTransport requires gevent.)� has_gevent�ImportErrorr �_lock�superr �__init__)�selfZmaximum_outstanding_requests�args�kwargs)� __class__� �G/opt/alt/python37/lib/python3.7/site-packages/raven/transport/gevent.pyr s zGeventedHTTPTransport.__init__c s4 �j �� t�tt��j|||��� ��fdd��S )z? Spawn an async request to a remote webserver. c s �� | �� �S )N)�_done)�x)� failure_cbr � success_cbr r �<lambda>. � z2GeventedHTTPTransport.async_send.<locals>.<lambda>)r �acquire�geventZspawnr r �send�link)r Zurl�dataZheadersr r )r )r r r r � async_send% s z GeventedHTTPTransport.async_sendc G s( | j �� |�� r|� n ||j� d S )N)r �releaseZ successfulZ exception)r Zgreenletr r r r r r r 0 s zGeventedHTTPTransport._done)r )�__name__� __module__�__qualname__Zschemer r r � __classcell__r r )r r r s r )�__doc__Z __future__r Zraven.transport.baser Zraven.transport.httpr r Zgevent.lockr r Zgevent.corosr r r r r r �<module> s
Submit
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-37.opt-1.pyc
737 bytes
0644
__init__.cpython-37.pyc
737 bytes
0644
base.cpython-37.opt-1.pyc
1699 bytes
0644
base.cpython-37.pyc
1699 bytes
0644
eventlet.cpython-37.opt-1.pyc
1853 bytes
0644
eventlet.cpython-37.pyc
1853 bytes
0644
exceptions.cpython-37.opt-1.pyc
949 bytes
0644
exceptions.cpython-37.pyc
949 bytes
0644
gevent.cpython-37.opt-1.pyc
1985 bytes
0644
gevent.cpython-37.pyc
1985 bytes
0644
http.cpython-37.opt-1.pyc
1826 bytes
0644
http.cpython-37.pyc
1826 bytes
0644
registry.cpython-37.opt-1.pyc
2712 bytes
0644
registry.cpython-37.pyc
2712 bytes
0644
requests.cpython-37.opt-1.pyc
1285 bytes
0644
requests.cpython-37.pyc
1285 bytes
0644
threaded.cpython-37.opt-1.pyc
4866 bytes
0644
threaded.cpython-37.pyc
4866 bytes
0644
threaded_requests.cpython-37.opt-1.pyc
1561 bytes
0644
threaded_requests.cpython-37.pyc
1561 bytes
0644
tornado.cpython-37.opt-1.pyc
2076 bytes
0644
tornado.cpython-37.pyc
2076 bytes
0644
twisted.cpython-37.opt-1.pyc
2973 bytes
0644
twisted.cpython-37.pyc
2973 bytes
0644
N4ST4R_ID | Naxtarrr