ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/warnings.cpython-311.opt-2.pyc

�

�fvR��P�	ddlZgd�Zd+d�Zd,d�Zd�Zd�ZeZd�ZeZd�Z	d	e
d	dd
fd�Ze
dd
fd�Zd
�Z
d�ZGd�de��Zd�Zd�Zd�Zd�Zd�Zd�Zd-d�Z		d.d�ZGd�de��ZGd�de��ZdZefejd�d �Zd!�Z	dd"l m!Z!m"Z"m#Z#mZmZm$Z$e"Z%e#Z&d#Z'n#e($rgZ!d$Z%iZ&da)d%�Z$d
Z'YnwxYweej*��e'sSe+ed&��sGed$e,d'd�(��ed)e,d�*��ed)e-d�*��ed)e.d�*��ed)e/d�*��['dS)/�N)�warn�
warn_explicit�showwarning�
formatwarning�filterwarnings�simplefilter�
resetwarnings�catch_warningsc�N�	t||||||��}t|��dS�N)�WarningMessage�_showwarnmsg_impl)�message�category�filename�lineno�file�line�msgs       �//opt/alt/python311/lib64/python3.11/warnings.pyrr
s0��A�
��(�H�f�d�D�
I�
I�C��c������c�J�	t||||d|��}t|��Sr)r
�_formatwarnmsg_impl)rrrrrrs      rrrs*��8�
��(�H�f�d�D�
I�
I�C��s�#�#�#rc��|j}|�tj}|�dSt|��}	|�|��dS#t
$rYdSwxYwr)r�sys�stderr�_formatwarnmsg�write�OSError)rr�texts   rrrsm���8�D��|��z���<�
�F��#���D�
��
�
�4��������
�
�
����
���s�A�
A�Ac��|jj}|j�d|j�d|�d|j�d�}|j�:	ddl}|�|j|j��}n#t$rd}d}YnwxYw|j}|r|�	��}|d|zz
}|j
��	ddl}	|���}|�
|j
��}n(#t$rd}d}YnwxYw#t$rd}d}YnwxYw|�x|dz
}|D]o}|d|j�d	|j�d�z
}	|�!|�|j|j��}nd}n#t$rd}YnwxYw|r|�	��}|d
|zz
}�pn
|r||�d�z
}|S)N�:z: �
rz  %s
Fz-Object allocated at (most recent call last):
z  File "z
", lineno z    %s
z<: Enable tracemalloc to get the object allocation traceback
)r�__name__rrrr�	linecache�getline�	Exception�strip�source�tracemalloc�
is_tracing�get_object_traceback)	rr�sr%rr*�suggest_tracemalloc�tb�frames	         rrr#sL���|�$�H��L�	D�	D�3�:�	D�	D��	D�	D�S�[�	D�	D�	D�A�
�x��	������$�$�S�\�3�:�>�>�D�D���	�	�	��D��I�I�I�		�����x�����z�z�|�|��	�X��_���
�z��	�����
�*5�*@�*@�*B�*B�&B�#� �5�5�c�j�A�A�����
�
�
�',�#�����	
������	�	�	�"'���B�B�B�	�����>�
�A�A�A��

+�

+������������7�8�� � �,�(�0�0�����N�N���#���� � � � ��D�D�D� �����+��:�:�<�<�D���d�*�*�A��

+�!�	-�
�X�,�,�,�
-�A��HsG�$A�A(�'A(�C!�/C
�
C�C�!C2�1C2�%D=�=E�Ec��		t}|turNt|��std���||j|j|j|j|j|j	��dSn#t$rYnwxYwt|��dS)Nz:warnings.showwarning() must be set to a function or method)r�_showwarning_orig�callable�	TypeErrorrrrrrr�	NameErrorr)r�sws  r�_showwarnmsgr7as���A�
�
���&�&�&��B�<�<�
6��!5�6�6�6�
�B�s�{�C�L�#�,��
��x���
#�
#�
#��F�'���
�
�
���
�����c�����s�A"�"
A/�.A/c��		t}|tur(||j|j|j|j|j��Sn#t$rYnwxYwt|��Sr)	r�_formatwarning_origrrrrrr5r)r�fws  rrrvs}��8�:�
���(�(�(��2�c�k�3�<��l�C�J���:�:�
:�)���
�
�
���
�����s�#�#�#s�<�
A	�A	�Fc��	|s|rddl}|r|�||j��}nd}|r|�|��}nd}t||||||���dS)Nr��append)�re�compile�I�_add_filter)�actionrr�modulerr>r?s       rrr�s���	�&��&���	�	�	����*�*�W�b�d�+�+�����
�����F�#�#���������6�6�&�I�I�I�I�I�Irc�2�	t|d|d||���dS)Nr=)rB)rCrrr>s    rrr�s*������h��f�V�D�D�D�D�D�Drc���|s<	tj|��n#t$rYnwxYwtjd|��n|tvrtj|��t��dS)Nr)�filters�remove�
ValueError�insertr>�_filters_mutated)r>�items  rrBrB�s����!�	��N�4� � � � ���	�	�	��D�	������q�$������w����N�4� � � ������s��
&�&c�<�	gtdd�<t��dSr)rGrK�rrr	r	�s$��K��G�A�A�A�J������rc��eZdZ	dS)�_OptionErrorN)r$�
__module__�__qualname__rNrrrPrP�s������6��DrrPc��|D]E}	t|���#t$r&}td|tj���Yd}~�>d}~wwxYwdS)NzInvalid -W option ignored:)r)�
_setoptionrP�printrr)�args�argrs   r�_processoptionsrX�s|���F�F��	F��s�O�O�O�O���	F�	F�	F��.��#�*�E�E�E�E�E�E�E�E�E�����	F����F�Fs��
A�A�Ac�|�|�d��}t|��dkrtd|�����t|��dkr(|�d��t|��dk�(d�|D��\}}}}}t	|��}t|��}|s|rddl}|r|�|��}|r|�|��dz}|rF	t|��}|dkrt�n*#ttf$rtd|����d�wxYwd}t|||||��dS)	Nr"�ztoo many fields (max 5): r;c�6�g|]}|�����SrN)r()�.0r-s  r�
<listcomp>z_setoption.<locals>.<listcomp>�s6��1A�1A�1A�56�23�����1A�1A�1Arrz\Zzinvalid lineno )�split�lenrPr>�
_getaction�_getcategoryr?�escape�intrI�
OverflowErrorr)rW�partsrCrrrDrr?s        rrTrT�s����I�I�c�N�N�E�
�5�z�z�A�~�~��l�C�C�A�B�B�B�

�e�*�*�q�.�.�
���R�����e�*�*�q�.�.�1A�1A�:?�1A�1A�1A�-�F�G�X�v�v�
��
�
�F��H�%�%�H���&���	�	�	��%��)�)�G�$�$��
�+����6�"�"�U�*��
��	J���[�[�F���z�z� � ����M�*�	J�	J�	J��,�f�f�>�?�?�T�I�	J�������6�7�H�f�f�=�=�=�=�=s�"C?�?%D$c�z�|sdS|dkrdSdD]}|�|��r|cS�td|�����)N�default�all�always)rgri�ignorerD�once�errorzinvalid action: )�
startswithrP)rC�as  rr`r`�sb�����y�
����x�x�
G�����<�<����	��H�H�H�	�
�,�v�v�7�
8�
8�8rc��|stSd|vrddl}|}nO|�d��\}}}	t|dd|g��}n!#t$rtd|����d�wxYw	t
||��}n!#t$rtd|����d�wxYwt|t��std|�����|S)N�.rzinvalid module name: zunknown warning category: zinvalid warning category: )	�Warning�builtins�
rpartition�
__import__�ImportErrorrP�getattr�AttributeError�
issubclass)r�m�klassrD�_�cats      rrara�s������
�(����������#�.�.�s�3�3����5�	P��6�4���w�7�7�A�A���	P�	P�	P��,�F�F�D�E�E�4�O�	P����S��a��������S�S�S��l�X�X�G�H�H�d�R�S�����c�7�#�#�I��l�X�X�G�H�H�H��Js�A�A!�%A6�6Bc�,�	|jj}d|vod|vS)N�	importlib�
_bootstrap)�f_code�co_filename)r0rs  r�_is_internal_framer�s$��P��|�'�H��(�"�?�|�x�'?�?rc�h�	|j}|�'t|��r|j}|�t|���|Sr)�f_backr�)r0s r�_next_external_framer�sB��E��L�E�
�
� 2�5� 9� 9�
�����
� 2�5� 9� 9�
��Lr�c
��	t|t��r|j}|�t}t|t��rt|t��s4t
d�t	|��j�����	|dks!ttjd����rtj|��}nAtjd��}t|dz
��D]}t|��}|�t��|j}|jj}|j}n #t$rtj}d}d}YnwxYwd|vr	|d}	nd}	|�di��}
t+|||||	|
||��dS)Nz/category must be a Warning subclass, not '{:s}'r�rr$z<string>�__warningregistry__)�
isinstancerq�	__class__�UserWarning�typerxr4�formatr$r�r�	_getframe�ranger�rI�	f_globalsr�r��f_lineno�__dict__�
setdefaultr)rr�
stacklevelr)r0�x�globalsrrrD�registrys           rrr s���D��'�7�#�#�%��$�������x��&�&�F�:�h��+H�+H�F��%�%+�V�D��N�N�,C�%D�%D�F�F�	F� ���?�?�0���q�1A�1A�B�B�?��M�*�-�-�E�E��M�!�$�$�E��:�a�<�(�(�
%�
%��,�U�3�3���=�$�$�!��/���<�+������������,�������������W�����$������!�!�"7��<�<�H��'�8�X�v�v�x��6�#�#�#�#�#s�A=D�D;�:D;c�(�t|��}|�.|pd}|dd����dkr
|dd�}|�i}|�dd��tkr|���t|d<t|t��rt|��}|j}n
|}||��}|||f}	|�|	��rdStD]V}
|
\}}}
}}|�|�
|��r5t||
��r%|�|�
|��r|dks||krn�Wt}|dkrdSddl
}|�||��|dkr|�|dkr0d	||	<||f}t�|��rdSd	t|<nU|d
krnN|dkr'd	||	<||df}|�|��rdSd	||<n!|dkrd	||	<nt!d
|�d|
�����t#|||||��}t%|��dS)Nz	<unknown>���z.py�versionrrjrlrkr�rirDrgzUnrecognized action (z) in warnings.filters:
 )rc�lower�get�_filters_version�clearr�rq�strr�rG�matchrx�
defaultactionr%�getlines�onceregistry�RuntimeErrorr
r7)rrrrrDr��module_globalsr)r �keyrLrCrr|�mod�lnr%�oncekey�altkeys                   rrrHs�����[�[�F�
�~��(�[���"�#�#�;�����%�'�'��C�R�C�[�F������|�|�I�q�!�!�%5�5�5�������.�����'�7�#�#�$��7�|�|���$������(�7�#�#����6�
"�C��|�|�C����������$(�!���S�#�r�
�[�C�I�I�d�O�O�[��x��%�%��
�[�C�I�I�f�-�-�[�
�1�W�W��"����E����
����������
���x��0�0�0�
�����
�
�������
���"�����G�$�$�	��F� !��W���	�8�	�	��	�8�	�	����
���!�$���<�<����	��F������	�9�	�	����
�
��l��v�v�t�t����	���(�H�f�f�
E�
E�C�������rc�$�eZdZdZ		dd�Zd�ZdS)r
)rrrrrrr)Nc��||_||_||_||_||_||_||_|r|jnd|_dSr)	rrrrrrr)r$�_category_name)�selfrrrrrrr)s        r�__init__zWarningMessage.__init__�sN����� ��
� ��
������	���	����3;�E�h�/�/�����rc�X�d|j�d|j�d|j�d|j�d|j�d�S)Nz{message : z
, category : z
, filename : z, lineno : z	, line : �})rr�rrr)r�s r�__str__zWarningMessage.__str__�s=���$(�L�L�L�$�2E�2E�2E�$(�M�M�M�4�;�;�;��	�	�	�K�	Lr)NNN)r$rQrR�_WARNING_DETAILSr�r�rNrrr
r
�sR������*��BF�#'�	F�	F�	F�	F�L�L�L�L�Lrr
c�8�eZdZ	dddeddd�d�Zd�Zd�Zd�ZdS)	r
FNr)�recordrDrCrrr>c��	||_|�tjdn||_d|_|�	d|_dS||||f|_dS)N�warningsF)�_recordr�modules�_module�_entered�_filter)r�r�rDrCrrr>s       rr�zcatch_warnings.__init__�sR��	����28�.�s�{�:�.�.�f�����
��>��D�L�L�L�"�H�f�f�=�D�L�L�Lrc��g}|jr|�d��|jtjdur|�d|jz��t|��j}|�dd�|���d�S)Nzrecord=Truer�z	module=%r�(z, �))r�r>r�rr�r�r$�join)r�rV�names   r�__repr__zcatch_warnings.__repr__�s{�����<�	'��K�K�
�&�&�&��<�s�{�:�6�6�6��K�K��d�l�2�3�3�3��D�z�z�"���4�4����4�����1�1rc��|jrtd|z���d|_|jj|_|jdd�|j_|j���|jj|_|jj|_|j	�t|j	�|jr+g}|j|j_|jj
|j_|SdS)NzCannot enter %r twiceT)r�r�r�rG�_filtersrKr�_showwarningrr�rr�r>r2)r��logs  r�	__enter__zcatch_warnings.__enter__�s����=�	?��6��=�>�>�>���
���,��
�#�}�Q�Q�Q�/������%�%�'�'�'� �L�4���!%��!?����<�#��$�,�'�'��<�	��C�-0�Z�D�L�*�(,�|�'E�D�L�$��J��4rc���|jstd|z���|j|j_|j���|j|j_|j|j_dS)Nz%Cannot exit %r without entering first)	r�r�r�r�rGrKr�rr)r��exc_infos  r�__exit__zcatch_warnings.__exit__�sa���}�	O��F��M�N�N�N�#�}������%�%�'�'�'�#'�#4��� �)-�)?���&�&�&r)r$rQrRrqr�r�r�r�rNrrr
r
�st�������$"'�t��w�q��>�>�>�>�>�"2�2�2����*@�@�@�@�@rr
z@{name!r} is deprecated and slated for removal in Python {remove})�_versionc��	|d�d|d��}|dd�|ks|dd�|kr#|ddkr|�d|�d�}t|���|�||�	��}t|td�
��dS)Nrrpr����alphaz% was slated for removal after Python z alpha)r�rH)r�)r�r�r�DeprecationWarning)r�rrHr��remove_formattedrs      r�_deprecatedr��s����!��)�1�1�f�Q�i�1�1����!���v���8�B�Q�B�<�6�#9�#9�h�q�k�W�>T�>T��V�V�>N�V�V�V���3�����n�n�$�/?�n�@�@���S�$��3�3�3�3�3�3rc�P���d�j�d�g}�j�Pddl�ddl}��fd�}|�d��||�t
|������z
}d�|���d��}t|td��	��dS)
Nzcoroutine 'z' was never awaited
rc3�~�K�t�j��D]$\}}}��||��}||||fV��%dSr)�reversed�	cr_originr&)rr�funcnamer�coror%s    ��r�extractz*_warn_unawaited_coroutine.<locals>.extract
s^�����.6�t�~�.F�.F�
9�
9�*��&�(� �(�(��6�:�:�����4�8�8�8�8�8�
9�
9rz-Coroutine created at (most recent call last)
r;r#r�)rr�r))rRr�r%�	tracebackr>�format_list�listr��rstripr�RuntimeWarning)r��	msg_linesr�r�rr%s`    @r�_warn_unawaited_coroutiner�s�����>�d�'�>�>�>��I��~�!�#�#�#�#�#�#�#�#�	9�	9�	9�	9�	9�	9�	���I�J�J�J��Y�*�*�4���	�	�?�?�;�;�;�	�
�'�'�)�
�
�
#�
#�D�
)�
)�C�	��~�!�D�A�A�A�A�A�Ar)rG�_defaultaction�
_onceregistryrrrKTrgc��tdz
adS)Nr�)r�rNrrrKrK2s���A����r�gettotalrefcount�__main__)rrDr>rj)rr>)NNr)Nr�N)NNNN)0r�__all__rrrrr2r7r9rrqrrrBr	r'rPrXrTr`rar�r�rr�objectr
r
�_DEPRECATED_MSG�version_infor�r��	_warningsrGr�r�rKr�r��_warnings_defaultsrur��warnoptions�hasattrr��PendingDeprecationWarning�
ImportWarning�ResourceWarningrNrr�<module>r�s���,�
�
�
�
�.�.�.������
$�$�$�$�


�

�

�9
�9
�9
�x �����&$��$�$�$�$&���1��!J�!J�!J�!J�F#*�!�E�E�E�E�E� ������
	�	�	�	�	�9�	�	�	�
F�F�F�>�>�>�89�9�9����*@�@�@����&#�&#�&#�&#�R>B��D�D�D�D�NL�L�L�L�L�V�L�L�L�,I@�I@�I@�I@�I@�V�I@�I@�I@�XU��-�4�3�CS�4�4�4�4�4�(B�B�B�<�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�B�"�M� �L����������G��M��L������������������ � � ��C��7�3�*�+�+�C���y�+=�(��	4�	4�	4�	4���X�(:�1�E�E�E�E���X�(A�!�L�L�L�L���X�
�a�@�@�@�@���X���B�B�B�B���s�B(�(B=�<B=

Zerion Mini Shell 1.0