ok
Direktori : /opt/alt/python37/lib/python3.7/site-packages/raven/transport/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/transport/__pycache__/base.cpython-37.pyc |
B ��Y� � @ s8 d Z ddlmZ dZG dd� de�ZG dd� de�ZdS ) z� raven.transport.base ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importTc @ s e Zd ZdZdZg Zdd� ZdS )� Transportz� All transport implementations need to subclass this class You must implement a send method (or an async_send method if sub-classing AsyncTransport). Fc C s t �dS )z You need to override this to do something with the actual data. Usually - this is sending to a server N)�NotImplementedError)�self�url�data�headers� r �E/opt/alt/python37/lib/python3.7/site-packages/raven/transport/base.py�send s zTransport.sendN)�__name__� __module__�__qualname__�__doc__�is_asyncZschemer r r r r r s r c @ s e Zd ZdZdZdd� ZdS )�AsyncTransportz� All asynchronous transport implementations should subclass this class. You must implement a async_send method. Tc C s t �dS )z� Override this method for asynchronous transports. Call `success_cb()` if the send succeeds or `error_cb(exception)` if the send fails. N)r )r r r r Z success_cbZerror_cbr r r � async_send, s zAsyncTransport.async_sendN)r r r r r r r r r r r "