OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
raven
/
contrib
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📄
__init__.py
197 bytes
10/29/2017 05:41:19 PM
rw-r--r--
📁
__pycache__
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📄
async.py
859 bytes
10/29/2017 05:41:19 PM
rw-r--r--
📁
awslambda
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
bottle
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
celery
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
django
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📄
flask.py
10.37 KB
10/29/2017 05:41:19 PM
rw-r--r--
📄
paste.py
394 bytes
10/29/2017 05:41:19 PM
rw-r--r--
📁
pylons
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
tornado
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
webpy
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
zconfig
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
zerorpc
-
02/16/2024 08:51:42 PM
rwxr-xr-x
📁
zope
-
02/16/2024 08:51:42 PM
rwxr-xr-x
Editing: async.py
Close
""" raven.contrib.async ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import warnings from raven.base import Client from raven.transport.threaded import AsyncWorker class AsyncClient(Client): """ This client uses a single background thread to dispatch errors. """ def __init__(self, worker=None, *args, **kwargs): warnings.warn('AsyncClient is deprecated. Use the threaded+http transport instead.', DeprecationWarning) self.worker = worker or AsyncWorker() super(AsyncClient, self).__init__(*args, **kwargs) def send_sync(self, **kwargs): super(AsyncClient, self).send(**kwargs) def send(self, **kwargs): self.worker.queue(self.send_sync, **kwargs)