Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
_pytest
/
__pycache__
[ HOME ]
Exec
Submit
File Name : threadexception.cpython-311.pyc
� � hc � �x � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dlm Z d dlZ G d� d � � Zd ed fd�Z ej d d �� � d ed fd�� � Z ej d d �� � d ed fd�� � Z ej d d �� � d ed fd�� � ZdS )� N)� TracebackType)�Any)�Callable)� Generator)�Optional)�Typec �r � e Zd ZdZd d�Zdd�Zdd�Zd eee d ee dee ddfd�ZdS )�catch_threading_exceptiona� Context manager catching threading.Thread exception using threading.excepthook. Storing exc_value using a custom hook can create a reference cycle. The reference cycle is broken explicitly when the context manager exits. Storing thread using a custom hook can resurrect it if it is set to an object which is being finalized. Exiting the context manager clears the stored object. Usage: with threading_helper.catch_threading_exception() as cm: # code spawning a thread which raises an exception ... # check the thread exception: use cm.args ... # cm.args attribute no longer exists at this point # (to break a reference cycle) �returnNc �"