Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

�,d!R��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}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
|s||�d�z
}|S)N�:z: �
rz  %s
Tz-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,�tracing�tb�frames	         rrr#sC���|�$�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��	�����"�,�,�.�.�G�
� �5�5�c�j�A�A�����
�
�
�����
������	�	�	��G��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�1C�C�C�C/�.C/�%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�_showwarnmsgr9`s���
�
���&�&�&��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  rrrusz��:�
���(�(�(��2�c�k�3�<��l�C�J���:�:�
:�)���
�
�
���
�����s�#�#�#s�;�
A�A�Fc��|s|rddl}|r|�||j��}nd}|r|�|��}nd}t||||||���dS)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
    rN��append)�re�compile�I�_add_filter)�actionrr�modulerr@rAs       rrr�s���*��&���	�	�	����*�*�W�b�d�+�+�����
�����F�#�#���������6�6�&�I�I�I�I�I�Irc�0�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
    Nr?)rD)rErrr@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  rrDrD�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)rIrM�rrr	r	�s!���G�A�A�A�J������rc��eZdZdZdS)�_OptionErrorz,Exception used by option processing helpers.N)r&�
__module__�__qualname__�__doc__rPrrrRrR�s������6�6��DrrRc��|D]E}	t|���#t$r&}td|tj���Yd}~�>d}~wwxYwdS)NzInvalid -W option ignored:)r)�
_setoptionrR�printrr)�args�argrs   r�_processoptionsr[�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|]}|�����SrP)r*)�.0r/s  r�
<listcomp>z_setoption.<locals>.<listcomp>�s6��1A�1A�1A�56�23�����1A�1A�1Arrz\Zzinvalid lineno )�split�lenrRr@�
_getaction�_getcategoryrA�escape�intrK�
OverflowErrorr)rZ�partsrErrrFrrAs        rrWrW�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)rjrl�ignorerF�once�errorzinvalid action: )�
startswithrR)rE�as  rrcrc�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__�ImportErrorrR�getattr�AttributeError�
issubclass)r�m�klassrF�_�cats      rrdrd�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__)�
isinstancert�	__class__�UserWarning�typer{r6�formatr&r�r�	_getframe�ranger�rK�	f_globalsr�r��f_lineno�__dict__�
setdefaultr)rr�
stacklevelr+r2�x�globalsrrrF�registrys           rrrs����'�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�versionrrmrornr�rlrFrjzUnrecognized action (z) in warnings.filters:
 )rf�lower�get�_filters_version�clearr�rt�strr�rI�matchr{�
defaultactionr'�getlines�onceregistry�RuntimeErrorr
r9)rrrrrFr��module_globalsr+r"�keyrNrErr�mod�lnr'�oncekey�altkeys                   rrrGs�����[�[�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&rSrT�_WARNING_DETAILSr�r�rPrrr
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)�recordrFrErrr@c��||_|�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�rFrErrr@s       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�r@r�rr�r�r&�join)r�rY�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�rI�_filtersrMr�_showwarningrr�rr�r@r4)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�rIrMr�rr)r��exc_infos  r�__exit__zcatch_warnings.__exit__�sa���}�	O��F��M�N�N�N�#�}������%�%�'�'�'�#'�#4��� �)-�)?���&�&�&r)	r&rSrTrUrtr�r�r�r�rPrrr
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").

    rrsr�N���alphaz% was slated for removal after Python z alpha)r�rJ)r�)r�r�r�DeprecationWarning)r�rrJr��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+)rTr�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)rI�_defaultaction�
_onceregistryrrrMTrjc��tdz
adS)Nr�)r�rPrrrMrM1s���A����r�gettotalrefcount�__main__)rrFr@rm)rr@)NNr)Nr�N)NNNN)1rUr�__all__rrrrr4r9r;rrtrrrDr	r)rRr[rWrcrdr�r�rr�objectr
r
�_DEPRECATED_MSG�version_infor�r��	_warningsrIr�r�rMr�r��_warnings_defaultsrxr��warnoptions�hasattrr��PendingDeprecationWarning�
ImportWarning�ResourceWarningrPrr�<module>r�s���,�,�
�
�
�
�.�.�.������
$�$�$�$�


�

�

�8
�8
�8
�v �����&$��$�$�$�$&���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>

ZeroDay Forums Mini