ok
Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/__pycache__/middleware.cpython-311.pyc |
� �܋f � � � d Z ddlmZ ddlmZ ddlmZmZ ddlm Z m Z mZ ed� � � Z G d� de� � Z G d � d e� � ZdS )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 # � K � d V � d S # t t f$ r � t $ r |� | � � � t $ r |� | � � � t $ r&}|j dk r|� | � � � d }~ww xY w)Nr )� StopIteration� GeneratorExit� Exception�handle_exception�KeyboardInterrupt� SystemExit�code)�environ�client�es �a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/raven/middleware.py�common_exception_handlingr s� � � � �� ��������=�)� � � � �� � � �����(�(�(� �� � � �����(�(�(� �� � � ��6�Q�;�;��#�#�G�,�,�,� ��������s � �AB �#!B�B c �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�ClosingIteratorz[ An iterator that is implements a ``close`` method as-per WSGI recommendation. c � � || _ || _ t |dd � � | _ t |� � | _ d| _ d S )N�closeF)�sentryr �getattr�_close�iter�iterable�closed)�selfr r r s r �__init__zClosingIterator.__init__, s; � ��������h���6�6����X���� ������ c � � | S �N� �r! s r �__iter__zClosingIterator.__iter__3 s � ��r# c �� � t | j | j � � 5 t | j � � cd d d � � S # 1 swxY w Y d S # t $ r | � � � � w xY wr% )r r r r r r r r'