/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/__pycache__
Edit: /opt/alt/python37/lib/python3.7/site-packages/raven/contrib/__pycache__/async.cpython-37.pyc (1403B)
B
¿öY[ ã @ sD d Z ddlmZ ddlZddlmZ ddlmZ G dd„ deƒZdS )z£
raven.contrib.async
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
é )Úabsolute_importN)ÚClient)ÚAsyncWorkerc s6 e Zd ZdZd ‡ fdd„ Z‡ fdd„Zdd„ Z‡ ZS )
ÚAsyncClientzI
This client uses a single background thread to dispatch errors.
Nc s. t dt¡ |ptƒ | _tt| ƒj||Ž d S )NzCAsyncClient is deprecated. Use the threaded+http transport instead.)ÚwarningsÚwarnÚDeprecationWarningr ÚworkerÚsuperr Ú__init__)Úselfr ÚargsÚkwargs)Ú __class__© úD/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/async.pyr s zAsyncClient.__init__c s t t| ƒjf |Ž d S )N)r
r Úsend)r r )r r r Ú send_sync s zAsyncClient.send_syncc K s | j j| jf|Ž d S )N)r Zqueuer )r r r r r r s zAsyncClient.send)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r Ú
__classcell__r r )r r r s r ) r Z
__future__r r Z
raven.baser Zraven.transport.threadedr r r r r r Ú
s