Your IP : 18.220.110.45


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/blinker/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/blinker/__pycache__/_utilities.cpython-311.pyc

�

N�Dgi��j�ddlmZddlmZ	en#e$rd�ZYnwxYw	ddlmZn#Gd�de��ZYnxYw	ddl	m
Z
n#e$rd�Z
YnwxYwGd	�d
e��Z
de
_Gd�de��Z	eefZn
#e$reZYnwxYwd
�ZeefZGd�de��Zdd�Zdd�ZGd�de��ZdS)�)�ref)�BoundMethodWeakrefc�"�t|d��S)N�__call__)�hasattr)�objects �r/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/blinker/_utilities.py�callabler
	s���v�z�*�*�*�)�defaultdictc�@�eZdZd
d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
dS)rNc��|�t|d��std���tj|g|�Ri|��||_dS)Nrzfirst argument must be callable)r�	TypeError�dict�__init__�default_factory)�selfr�a�kws    r	rzdefaultdict.__init__sW���+��O�Z�8�8�,�� A�B�B�B��M�$�)��)�)�)�b�)�)�)�#2�D� � � rc��	t�||��S#t$r|�|��cYSwxYw�N)r�__getitem__�KeyError�__missing__)r�keys  r	rzdefaultdict.__getitem__sR��
-��'�'��c�2�2�2���
-�
-�
-��'�'��,�,�,�,�,�
-���s��?�?c�d�|j�t|���|���x||<}|Sr)rr)rr�values   r	rzdefaultdict.__missing__s6���#�+��s�m�m�#� $� 4� 4� 6� 6�6�D��I���Lrc��|j�t��}n|jf}t|��|dd|���fSr)r�tuple�type�items)r�argss  r	�
__reduce__zdefaultdict.__reduce__%s@���#�+��w�w����+�,����:�:�t�T�4������=�=rc�*�|���Sr)�__copy__�rs r	�copyzdefaultdict.copy,s���=�=�?�?�"rc�>�t|��|j|��Sr)r rr&s r	r%zdefaultdict.__copy__/s���4��:�:�d�2�D�9�9�9rc��ddl}t|��|j|�|�������S)Nr)r'r r�deepcopyr!)r�memor's   r	�__deepcopy__zdefaultdict.__deepcopy__2sA���K�K�K��4��:�:�d�2�"�m�m�D�J�J�L�L�9�9�;�;�
;rc�N�d|j�dt�|���d�S)Nzdefaultdict(z, �))rr�__repr__r&s r	r/zdefaultdict.__repr__7s1���,0�,@�,@�,@�,0�M�M�$�,?�,?�,?�,?�A�
Arr)�__name__�
__module__�__qualname__rrrr#r'r%r,r/�rr	rrs�������	3�	3�	3�	3�	-�	-�	-�	�	�	�	>�	>�	>�	#�	#�	#�	:�	:�	:�	;�	;�	;�
	A�	A�	A�	A�	Arr)�contextmanagerc�$�d�}|j|_|S)Nc� �td���)Nz8Python 2.5 or above is required to use context managers.)�RuntimeError)r"rs  r	�oopszcontextmanager.<locals>.oops@s��� 3�4�4�
4r)r0)�fnr8s  r	r4r4?s!��	4�	4�	4����
��rc� �eZdZd�Zd�Zd�ZdS)�_symbolc�"�|x|_|_dS)zConstruct a new named symbol.N)r0�name)rr=s  r	rz_symbol.__init__Hs��$(�(��
��	�	�	rc� �t|jffSr)�symbolr=r&s r	r#z_symbol.__reduce__Ls����	�|�#�#rc��|jSr)r=r&s r	r/z_symbol.__repr__Os
���y�rN)r0r1r2rr#r/r3rr	r;r;FsA������)�)�)�$�$�$�����rr;r?c��eZdZdZiZd�ZdS)r?a?A constant symbol.

    >>> symbol('foo') is symbol('foo')
    True
    >>> symbol('foo')
    foo

    A slight refinement of the MAGICCOOKIE=object() pattern.  The primary
    advantage of symbol() is its repr().  They are also singletons.

    Repeated calls of symbol('name') will all return the same instance.

    c��	|j|S#t$r+|j�|t|����cYSwxYwr)�symbolsr�
setdefaultr;)�clsr=s  r	�__new__zsymbol.__new__dsS��	?��;�t�$�$���	?�	?�	?��;�)�)�$���
�
�>�>�>�>�>�	?���s��2A�AN)r0r1r2�__doc__rCrFr3rr	r?r?Ts4���������G�?�?�?�?�?rc�.�t|d��r(t|j��t|j��fSt|d��r(t|j��t|j��fSt
|t��r|St|��S)N�__func__�im_func)r�idrI�__self__rJ�im_self�
isinstance�text)�objs r	�hashable_identityrQqs����s�J�����3�<� � �"�S�\�"2�"2�3�3�	��i�	 �	 ���3�;����C�K���1�1�	�C��	�	���
��#�w�w�rc��eZdZdZdS)�annotatable_weakrefz7A weakref.ref that supports custom instance attributes.N)r0r1r2rGr3rr	rSrSs������A�A�A�ArrSNc��t|��rt||��}nt||��}|���D]\}}t	|||���|S)zReturn an annotated weak ref.)r
�callable_referencerSr!�setattr)r�callback�annotations�weakrrs      r	�	referencerZ�sk������5�!�&�(�3�3���"�6�8�4�4��!�'�'�)�)�"�"�
��U���c�5�!�!�!�!��Krc���t|d��r|j�t||���St|d��r|j�t||���St	||��S)z@Return an annotated weak ref, supporting bound instance methods.rMN)�target�	on_deleterL)rrMrrLrS)rrWs  r	rUrU�sl���v�y�!�!�E�f�n�&@�!��8�D�D�D�D�	���	$�	$�E���)D�!��8�D�D�D�D��v�x�0�0�0rc��eZdZdZd�Zd�ZdS)�
lazy_propertyz(A @property that is only evaluated once.c�,�||_|j|_dSr)�	_deferredrG)r�deferreds  r	rzlazy_property.__init__�s��!����'����rc�n�|�|S|�|��}t||jj|��|Sr)rarVr0)rrPrErs    r	�__get__zlazy_property.__get__�s9���;��K����s�#�#����T�^�,�e�4�4�4��rN)r0r1r2rGrrdr3rr	r_r_�s8������2�2�(�(�(�����rr_r)�weakrefr�blinker._saferefrr
�	NameError�collectionsrr�
contextlibr4�ImportErrorrr;r0r?�str�unicoderOrQ�	WeakTypesrSrZrUr_r3rr	�<module>rnsW��������/�/�/�/�/�/�+��H�H���+�+�+�+�+�+�+�+�+����
,A�'�'�'�'�'�'�'��*A�)A�)A�)A�)A�)A�d�)A�)A�)A�)A�)A����X�)�)�)�)�)�)�)���������������
�
�
�
�
�f�
�
�
����?�?�?�?�?�V�?�?�?�.���>�D�D�������D�D�D���������$�%�	�B�B�B�B�B�#�B�B�B�����1�1�1�1������F�����s7����'�9�A�A�A�6A;�;B�B

?>