OwlCyberSecurity - MANAGER
Edit File: _threading_local.cpython-310.opt-2.pyc
o ����S�g4����������������������@���s\��� �d�dl�mZ�d�dlmZ�dgZG�dd��d�Zedd���ZG�dd��d�Zd�d lm Z m Z �d S�)�����)�ref)�contextmanager�localc�������������������@���s*���e�Zd�Z �dZdd��Zdd��Zdd��ZdS�) � _localimpl)�key�dicts� localargs� locallock�__weakref__c�����������������C���s���dt�t|����|�_i�|�_d�S�)Nz_threading_local._localimpl.)�str�idr���r���)�self��r����7/opt/alt/python310/lib64/python3.10/_threading_local.py�__init__����s��� z_localimpl.__init__c�����������������C���s��� �t���}|�jt|��d�S�)N����)�current_threadr���r���)r ����threadr���r���r����get_dict����s���z_localimpl.get_dictc��������������������sj��� �i�}|�j�}t��}t|�}|f�fdd� }|f��fdd� }t|�|���t||����|j|<��|f|�j|<�|S�)Nc��������������������s�������}|d�ur |j�|=�d�S�d�S��N)�__dict__)�_r���r���)�wrthreadr���r���� local_deleted����s����z-_localimpl.create_dict.<locals>.local_deletedc��������������������s"�������}|d�ur|j��|�}d�S�d�S�r���)r����pop)r����idtr����dct)�wrlocalr���r����thread_deleted����s����z._localimpl.create_dict.<locals>.thread_deleted)r���r���r���r���r���r���)r ���Z localdictr���r���r���r���r���r���)r���r���r����create_dict����s��� z_localimpl.create_dictN)�__name__� __module__�__qualname__� __slots__r���r���r���r���r���r���r���r�������s����r���c�����������������c���s������t��|�d�}z|���}W�n�ty'���|���}|j\}}|�j|i�|���Y�nw�|j��t��|�d|��d�V��W�d�����d�S�1�sAw���Y��d�S�)N�_local__implr���) �object�__getattribute__r����KeyErrorr���r���r���r ����__setattr__)r ����implr����args�kwr���r���r����_patch����s���� �"�r,���c�������������������@���s0���e�Zd�ZdZdd��Zdd��Zdd��Zdd ��Zd S�)r���)r$���r���c����������������O���sX���|s|r|�j�tj�u�rtd��t�|��}t��}||f|_t��|_t�|d|��|� ���|S�)Nz*Initialization arguments are not supportedr$���) r���r%���� TypeError�__new__r���r����RLockr ���r(���r���)�clsr*���r+���r ���r)���r���r���r���r.�������s��� z local.__new__c�����������������C���s8���t�|����t�|�|�W��d�����S�1�sw���Y��d�S�r���)r,���r%���r&����r ����namer���r���r���r&�������s��� $�zlocal.__getattribute__c�����������������C���sR���|dkrt�d|�jj���t|����t�|�||�W��d�����S�1�s"w���Y��d�S��Nr���z+%r object attribute '__dict__' is read-only)�AttributeError� __class__r ���r,���r%���r(���)r ���r2����valuer���r���r���r(�������s����� $�zlocal.__setattr__c�����������������C���sP���|dkrt�d|�jj���t|����t�|�|�W��d�����S�1�s!w���Y��d�S�r3���)r4���r5���r ���r,���r%����__delattr__r1���r���r���r���r7�������s����� $�zlocal.__delattr__N)r ���r!���r"���r#���r.���r&���r(���r7���r���r���r���r���r�������s����)r���r/���N)�weakrefr���� contextlibr����__all__r���r,���r���Z threadingr���r/���r���r���r���r����<module>���s�����, &