📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 08:47:24
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
✏️
Editing: threading.cpython-312.pyc
� Yr*j� � �, � d dl Z d dlZd dlmZmZ d dlmZ d dlmZm Z d dl mZ d dlZd dl mZ d dlmZmZ d dlmZmZmZmZ er+d d l mZmZmZmZ d d lmZ ededef � � Z ede� � Z G d� de� Z dd�Z ddde!ddfd�Z"dd�Z#y)� N)�Future�ThreadPoolExecutor��wraps)�Thread�current_thread)� TYPE_CHECKING)�Integration��use_isolation_scope� use_scope)�capture_internal_exceptions�event_from_exception�logger�reraise)�Any�Callable�Optional�TypeVar)�ExcInfo�F.)�bound�Tc �: � e Zd ZdZ d dddeddfd�Zed d�� Zy)�ThreadingIntegration� threadingN� propagate_hubzOptional[bool]�propagate_scope�returnc �T � |�t j d� || _ |�|| _ y y )NzLDeprecated: propagate_hub is deprecated. This will be removed in the future.)r �warningr )�selfr r s �P/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/threading.py�__init__zThreadingIntegration.__init__ s6 � � �$��N�N�^� � /����$�#0�D� � %� c � ��� t j � ddlm} dd l}|j }t j dk xr |d uxr |dk xr | d uxr | dk\ xr | dk �t �� d��fd�� }|t _ t t j �� t _ y # t $ r d } Y ��w xY w# t t f$ r d }Y ��w xY w) Nr )�VERSION)� � z4.0.0)r( r )� r c �X �� t j � j t � }|� �| g|��i |��S |j r��r@t j dd�� t j � }t j � }nIt j � j � }t j � j � }nd }d }t � 5 t ||t | j d| j � � }|| _ d d d � �| g|��i |��S # 1 sw Y �xY w)NaV There is a known issue with Django channels 2.x and 3.x when using Python 3.8 or older. (Async support is emulated using threads and some Sentry data may be leaked between those threads.) Please either upgrade to Django channels 4.0+, use Django's async features available in Django 3.1+ instead of Django channels, or upgrade to Python 3.9+.� )� stacklevel�__func__)� sentry_sdk� get_client�get_integrationr r �warnings�warn�get_isolation_scope�get_current_scope�forkr � _wrap_run�getattr�run) r"