Hacked By AnonymousFox

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

�

c��fvR��R�dZddlZgd�Zd,d�Zd-d�Zd�Zd�ZeZd�ZeZ	d	�Z
d
ed
ddfd�Zeddfd
�Z
d�Zd�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%dZ(YnwxYweej+��e(sSe,ed'��sGed%e-d(d�)��e
d*e-d�+��e
d*e.d�+��e
d*e/d�+��e
d*e0d�+��[(dS)0z&Python part of the warnings subsystem.�N)�warn�
warn_explicit�showwarning�
formatwarning�filterwarnings�simplefilter�
resetwarnings�catch_warningsc�L�t||||||��}t|��dS)�7Hook to write a warning to a file; replace if you like.N)�WarningMessage�_showwarnmsg_impl)�message�category�filename�lineno�file�line�msgs       �//opt/alt/python311/lib64/python3.11/warnings.pyrr
s-��
��(�H�f�d�D�
I�
I�C��c������c�H�t||||d|��}t|��S)�.Function to format a warning the standard way.N)r
�_formatwarnmsg_impl)rrrrrrs      rrrs'��
��(�H�f�d�D�
I�
I�C��s�#�#�#rc��|j}|�tj}|�dSt|��}	|�|��dS#t
$rYdSwxYw�N)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)rz:warnings.showwarning() must be set to a function or methodN)r�_showwarning_orig�callable�	TypeErrorrrrrrr�	NameErrorr)r�sws  r�_showwarnmsgr9as���
�
���&�&�&��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|��S)r)	r�_formatwarning_origrrrrrr7r)r�fws  rrrvsz��:�
���(�(�(��2�c�k�3�<��l�C�J���:�:�
:�)���
�
�
���
�����s�#�#�#s�;�
A�A�Fc��|dvs
Jd|�����t|t��s
Jd���t|t��s
Jd���t|t��s
Jd���t|t��s
Jd���t|t
��r|dks
Jd���|s|rdd	l}|r|�||j��}nd	}|r|�|��}nd	}t||||||�
��d	S)a�Insert an entry into the list of warnings filters (at the front).

    'action' -- one of "error", "ignore", "always", "default", "module",
                or "once"
    'message' -- a regex that the warning message must match
    'category' -- a class that the warning must be a subclass of
    'module' -- a regex that the module name must match
    'lineno' -- an integer line number, 0 matches all warnings
    'append' -- if true, append to the list of filters
    ��error�ignore�always�default�module�once�invalid action: zmessage must be a stringzcategory must be a classz#category must be a Warning subclasszmodule must be a stringr�lineno must be an int >= 0N��append)
�
isinstance�str�type�
issubclass�Warning�int�re�compile�I�_add_filter)�actionrrrDrrIrPs       rrr�s[��������7=�v�?�����g�s�#�#�?�?�%?�?�?�#��h��%�%�A�A�'A�A�A�%��h��(�(�O�O�*O�O�O�(��f�c�"�"�=�=�$=�=�=�"��f�c�"�"�(�v��{�{�{�'�(3�{�2���&���	�	�	����*�*�W�b�d�+�+�����
�����F�#�#���������6�6�&�I�I�I�I�I�Irc��|dvs
Jd|�����t|t��r|dks
Jd���t|d|d||���dS)a�Insert a simple entry into the list of warnings filters (at the front).

    A simple filter matches all modules and messages.
    'action' -- one of "error", "ignore", "always", "default", "module",
                or "once"
    'category' -- a class that the warning must be a subclass of
    'lineno' -- an integer line number, 0 matches all warnings
    'append' -- if true, append to the list of filters
    r?rFrrGNrH)rJrOrS)rTrrrIs    rrr�s���������7=�v�?�����f�c�"�"�(�v��{�{�{�'�(3�{�2����h��f�V�D�D�D�D�D�Drc���|s<	tj|��n#t$rYnwxYwtjd|��n|tvrtj|��t��dS)Nr)�filters�remove�
ValueError�insertrI�_filters_mutated)rI�items  rrSrS�s����!�	��N�4� � � � ���	�	�	��D�	������q�$������w����N�4� � � ������s��
&�&c�:�gtdd�<t��dS)zAClear the list of warning filters, so that no filters are active.N)rWr[�rrr	r	�s!���G�A�A�A�J������rc��eZdZdZdS)�_OptionErrorz,Exception used by option processing helpers.N)r&�
__module__�__qualname__�__doc__r^rrr`r`�s������6�6��Drr`c��|D]E}	t|���#t$r&}td|tj���Yd}~�>d}~wwxYwdS)NzInvalid -W option ignored:)r)�
_setoptionr`�printrr)�args�argrs   r�_processoptionsri�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|]}|�����Sr^)r*)�.0r/s  r�
<listcomp>z_setoption.<locals>.<listcomp>�s6��1A�1A�1A�56�23�����1A�1A�1Arrz\Zzinvalid lineno )�split�lenr`rI�
_getaction�_getcategoryrP�escaperOrY�
OverflowErrorr)rh�partsrTrrrDrrPs        rrere�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|�����)NrC�allrB)rCrBrArDrEr@rF)�
startswithr`)rT�as  rrqrq�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: )	rN�builtins�
rpartition�
__import__�ImportErrorr`�getattr�AttributeErrorrM)r�m�klassrD�_�cats      rrrrr�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)zFSignal whether the frame is an internal CPython implementation detail.�	importlib�
_bootstrap)�f_code�co_filename)r2rs  r�_is_internal_framer�s!���|�'�H��(�"�?�|�x�'?�?rc�f�|j}|�'t|��r|j}|�t|���|S)z;Find the next frame that doesn't involve CPython internals.)�f_backr�)r2s r�_next_external_framer�s?���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)z:Issue a warning, or maybe ignore it or raise an exception.Nz/category must be a Warning subclass, not '{:s}'r�rr&z<string>�__warningregistry__)rJrN�	__class__�UserWarningrLrMr6�formatr&r�r�	_getframe�ranger�rY�	f_globalsr�r��f_lineno�__dict__�
setdefaultr)rr�
stacklevelr+r2�x�globalsrrrD�registrys           rrr s����'�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:�9D: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�versionrrAr@rEr�rBrDrCzUnrecognized action (z) in warnings.filters:
 )rO�lower�get�_filters_version�clearrJrNrKr�rW�matchrM�
defaultactionr'�getlines�onceregistry�RuntimeErrorr
r9)rrrrrDr��module_globalsr+r"�keyr\rTrr��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&rarb�_WARNING_DETAILSr�r�r^rrr
r
�sR������*��BF�#'�	F�	F�	F�	F�L�L�L�L�Lrr
c�:�eZdZdZdddeddd�d�Zd�Zd�Zd	�ZdS)
r
a9A context manager that copies and restores the warnings filter upon
    exiting the context.

    The 'record' argument specifies whether warnings should be captured by a
    custom implementation of warnings.showwarning() and be appended to a list
    returned by the context manager. Otherwise None is returned by the context
    manager. The objects appended to the list are arguments whose attributes
    mirror the arguments to showwarning().

    The 'module' argument is to specify an alternative module to the module
    named 'warnings' and imported under that name. This argument is only useful
    when testing the warnings module itself.

    If the 'action' argument is not None, the remaining arguments are passed
    to warnings.simplefilter() as if it were called immediately on entering the
    context.
    FNr)�recordrDrTrrrIc��||_|�tjdn||_d|_|�	d|_dS||||f|_dS)z�Specify whether to record warnings and if an alternative module
        should be used other than sys.modules['warnings'].

        For compatibility with Python 3.0, please consider all arguments to be
        keyword-only.

        N�warningsF)�_recordr�modules�_module�_entered�_filter)r�r�rDrTrrrIs       rr�zcatch_warnings.__init__�sM�����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�rIr�rr�rLr&�join)r�rg�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�rW�_filtersr[r�_showwarningrr�rr�rIr4)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�rWr[r�rr)r��exc_infos  r�__exit__zcatch_warnings.__exit__�sa���}�	O��F��M�N�N�N�#�}������%�%�'�'�'�#'�#4��� �)-�)?���&�&�&r)	r&rarbrcrNr�r�r�r�r^rrr
r
�sy��������$"'�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)a;Warn that *name* is deprecated or should be removed.

    RuntimeError is raised if *remove* specifies a major/minor tuple older than
    the current Python version or the same version but past the alpha.

    The *message* argument is formatted with *name* and *remove* as a Python
    version (e.g. "3.11").

    rr{r�N���alphaz% was slated for removal after Python z alpha)r�rX)r�)r�r�r�DeprecationWarning)r�rrXr��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+)rbr�r'�	tracebackrI�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)rW�_defaultaction�
_onceregistryrrr[TrCc��tdz
adS)Nr�)r�r^rrr[r[2s���A����r�gettotalrefcount�__main__)rrDrIrA)rrI)NNr)Nr�N)NNNN)1rcr�__all__rrrrr4r9r;rrNrrrSr	r)r`rirerqrrr�r�rr�objectr
r
�_DEPRECATED_MSG�version_infor�r��	_warningsrWr�r�r[r�r��_warnings_defaultsrr��warnoptions�hasattrr��PendingDeprecationWarning�
ImportWarning�ResourceWarningr^rr�<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>

Hacked By AnonymousFox1.0, Coded By AnonymousFox