$83 GRAYBYTE WORDPRESS FILE MANAGER $51

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python37/lib/python3.7/site-packages/raven/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/raven/__pycache__//middleware.cpython-37.pyc
B

��Y
�@spdZddlmZddlmZddlmZmZddlm	Z	m
Z
mZedd��ZGdd	�d	e�Z
Gd
d�de�ZdS)
z�
raven.middleware
~~~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
�)�absolute_import)�contextmanager)�Iterator�next)�get_current_url�get_headers�get_environc
cs�y
dVWn�ttfk
r$�Ynttk
rB|�|��YnVtk
r`|�|��Yn8tk
r�}z|jdkr�|�|��Wdd}~XYnXdS)Nr)�
StopIteration�
GeneratorExit�	Exception�handle_exception�KeyboardInterrupt�
SystemExit�code)�environ�client�e�r�A/opt/alt/python37/lib/python3.7/site-packages/raven/middleware.py�common_exception_handlings




rc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�ClosingIteratorz[
    An iterator that is implements a ``close`` method as-per
    WSGI recommendation.
    cCs.||_||_t|dd�|_t|�|_d|_dS)N�closeF)�sentryr�getattr�_close�iter�iterable�closed)�selfrrrrrr�__init__,s

zClosingIterator.__init__cCs|S)Nr)rrrr�__iter__3szClosingIterator.__iter__c	CsHy$t|j|j��t|j�SQRXWntk
rB|���YnXdS)N)rrrrrr	r)rrrr�__next__6szClosingIterator.__next__c	Csd|jr
dSz0|jdk	r8t|j|j��|��WdQRXWd|jjj��|jjj��d|_XdS)NT)	rrrrrr�context�clearZtransaction)rrrrrBs
zClosingIterator.closeN)�__name__�
__module__�__qualname__�__doc__rr r!rrrrrr&s
rc@s4eZdZdZddd�Zdd�Zdd�Zdd	d
�ZdS)
�Sentryz�
    A WSGI middleware which will attempt to capture any
    uncaught exceptions and send them to Sentry.

    >>> from raven.base import Client
    >>> application = Sentry(application, Client())
    NcCs*||_|dkr ddlm}|�}||_dS)Nr)�Client)�applicationZ
raven.baser)r)rr*rr)rrrrXs
zSentry.__init__c	Cs@|j�|�|��t||��|�||�}WdQRXt|||�S)N)rZhttp_context�get_http_contextrr*r)rrZstart_responserrrr�__call___szSentry.__call__cCs4|�d�t|dd�|�d�tt|��tt|��d�S)NZREQUEST_METHODT)Zstrip_querystringZQUERY_STRING)�method�urlZquery_string�headers�env)�getr�dictrr)rrrrrr+gs


zSentry.get_http_contextcCs
|j��S)N)rZcaptureException)rrrrrrrszSentry.handle_exception)N)N)r$r%r&r'rr,r+rrrrrr(Os

r(N)r'�
__future__r�
contextlibrZraven.utils.compatrrZraven.utils.wsgirrrrr�objectr(rrrr�<module>s)


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.10 PM
root / linksafe
0755
__init__.cpython-37.pyc
1.398 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
base.cpython-37.pyc
25.032 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
breadcrumbs.cpython-37.pyc
9.372 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
context.cpython-37.pyc
4.189 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
events.cpython-37.pyc
4.629 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
exceptions.cpython-37.pyc
1.495 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
middleware.cpython-37.pyc
3.35 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
processors.cpython-37.pyc
4.57 KB
14 Nov 2023 2.14 PM
root / linksafe
0644
versioning.cpython-37.pyc
1.774 KB
14 Nov 2023 2.14 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF