403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.14/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/test/support/__pycache__/warnings_helper.cpython-314.pyc
+
��3j����^RIt^RIt^RIt^RIt^RIt^RItRtRR^RR/RlltRt!RR	]	4t
]PR
4t]PR]
R3Rl4t]PR
4tRRlt]PR4tRtR#)�Nc���\P!4;_uu_4\P!R\R7\P
!V4uuRRR4# +'giR#;i)z3Import *name* while suppressing DeprecationWarning.�ignore��categoryN)�warnings�catch_warnings�simplefilter�DeprecationWarning�	importlib�
import_module)�names&�3/usr/lib/python3.14/test/support/warnings_helper.py�import_deprecatedr	s?��	�	 �	 �	"�	"����h�1C�D��&�&�t�,�
#�	"�	"�	"�s�2A�A,	��lineno�offsetc
�H�^RIHp\P!RR7;_uu_4p\P!R\
4\
VRR4RRR4VP\X4^V4VwpVPVP\
4V'd&VP\VP4V4VPVPR4VPVP 4VeVPVP V4\P!RR7;_uu_4p\P!R\
4V!WVW4R	7RRR4VPV.4R# +'giEL7;i +'giL8;i)
r)�check_syntax_errorT��record�alwaysz
<testcase>�execN�error)rr)�test.supportrrrr	�
SyntaxWarning�compile�assertEqual�len�assertIsSubclassr�assertRegex�str�message�filename�assertIsNotNoner)�testcase�	statement�errtextrrr�warns�warns&&&$$   r�check_syntax_warningr*s*��0�	�	 �	 ��	-�	-�����h�
�6��	�<��0�
.�
����U��Q��.��E�D����d�m�m�]�;�����S����.��8��������5����T�[�[�)�
�����T�[�[�&�1�

�	 �	 ��	-�	-�����g�}�5��8��"(�	9�
.�

�����#�-
.�	-�	-��"
.�	-�s�)E=�:'F�=F	�F!	c�a�V3RlpV#)z�Decorator to suppress warnings.

Use of context managers to hide warnings make diffs
more noisy and tools like 'git blame' less useful.
c�J<a�\P!S4VV3Rl4pV#)c��<�\P!4;_uu_4\P!RSR7S!V.VO5/VBuuRRR4# +'giR#;i)rrN)rrr	)�self�args�kwargsr�tests&*,��r�wrapper�3ignore_warnings.<locals>.decorator.<locals>.wrapper4sC����(�(�*�*��%�%�h��B��D�2�4�2�6�2�+�*�*�*�s�$A�A	)�	functools�wraps)r1r2rsf �r�	decorator�"ignore_warnings.<locals>.decorator3s%���	����	�	3�
�	3����)rr6sd r�ignore_warningsr:-s�����r8c�Fa�]tRt^=toRtRtRt]R4tRt	Rt
VtR#)�WarningsRecorderznConvenience wrapper for the warnings list returned on
entry to the warnings.catch_warnings() context manager.
c� �Wn^VnR#)rN��	_warnings�_last)r.�
warnings_lists&&r�__init__�WarningsRecorder.__init__As��&����
r8c���\VP4VP8�d\VPR,V4#V\P
P9dR#\V:RV:24h)�Nz has no attribute ���)rr?r@�getattrr�WarningMessage�_WARNING_DETAILS�AttributeError)r.�attrs&&r�__getattr__�WarningsRecorder.__getattr__EsT���t�~�~�����+��4�>�>�"�-�t�4�4�
�X�,�,�=�=�
=����t�D�E�Er8c�4�VPVPR#�Nr>�r.s&rr�WarningsRecorder.warningsLs���~�~�d�j�j�k�*�*r8c�:�\VP4VnR#rO)rr?r@rPs&r�reset�WarningsRecorder.resetPs������(��
r8)r@r?N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rBrL�propertyrrS�__static_attributes__�__classdictcell__)�
__classdict__s@rr<r<=s3������F��+��+�)�)r8r<c�h�VPR4pV'gR\33pVfRp\W4#)atContext manager to silence warnings.

Accept 2-tuples as positional arguments:
    ("message regexp", WarningCategory)

Optional argument:
 - if 'quiet' is True, it does not fail if a filter catches nothing
    (default True without argument,
     default False if some filters are defined)

Without argument, it defaults to:
    check_warnings(("", Warning), quiet=True)
�quietrT)�get�Warning�_filterwarnings)�filtersr0r_s*, r�check_warningsrdTs6��
�J�J�w��E����=�"���=��E��7�*�*r8Fc#�"�^RIHp\P!RR7;_uu_4p\P!RVVR7Rx�V'dV!4RRR4VPX.4R# +'giL$;i5i)a�Context manager to check that no warnings are emitted.

This context manager enables a given warning within its scope
and checks that no warnings are emitted even with that warning
enabled.

If force_gc is True, a garbage collection is attempted before checking
for warnings. This may help to catch warnings emitted when objects
are deleted, such as ResourceWarning.

Other keyword arguments are passed to warnings.filterwarnings().
)�
gc_collectTrr)r"rN)rrfrr�filterwarningsr)r%r"r�force_gcrfr(s&&&&  r�check_no_warningsrils_���(�	�	 �	 ��	-�	-������(/�)1�	3�	���L�

.�
�����#�
.�	-�s�&B�-A1�B�1B	�<Bc#�"�\V\RR7;_uu_4Rx�RRR4R# +'giR#;i5i)aContext manager to check that no ResourceWarning is emitted.

Usage:

    with check_no_resource_warning(self):
        f = open(...)
        ...
        del f

You must remove the object which may emit ResourceWarning before
the end of the context manager.
T)rrhN)ri�ResourceWarning)r%s&r�check_no_resource_warningrl�s(���
�8�o��	M�	M�
�
N�	M�	M�	M�s�A�,�
A�=	�	Ac#�"�\P!^4pVPPR4pV'dVP	4\P
R,pVP
RR7;_uu_4pVPR4\V4x�RRR4\X4p.pVF�wr�Rp
VR,FwpVPp\P!V\V4\P4'gKF\VP V	4'gKdRp
VP#V4Ky	V
'dK�V'dK�VP%W�P&34K�	V'd\)R	V^,,4hV'd\)R
V^,,4hR# +'giEL#;i5i)z�Catch the warnings, then check if all the expected
warnings have been raised and re-raise unexpected warnings.
If 'quiet' is True, only re-raise the unexpected warnings.
�__warningregistry__rTrrNF�NNNzunhandled warning %sz)filter (%r, %s) did not catch any warning)�sys�	_getframe�	f_globalsr`�clear�modulesrr	r<�listr"�re�matchr!�I�
issubclass�	__class__�remove�appendrU�AssertionError)rcr_�frame�registry�wmod�w�reraise�missing�msg�cat�seen�warnings&&          rrbrb�s[���
�M�M�!��E����"�"�#8�9�H�������;�;�z�"�D�	
�	�	�D�	�	)�	)�Q����(�#��q�!�!�
*�
�1�g�G��G����������A��i�i�G�����c�'�l�B�D�D�1�1��7�,�,�c�2�2������q�!�
��t�E�E��N�N�C���.�/����3�g�a�j�@�A�A���H�$�Q�Z�(�)�	)��+
*�	)�	)�sC�A;G
�=F6�A(G
�	G
�'G
�G
�'G
�: G
�G
�6G	�	G
c#�"�\PR,pRx�V\PR&R# T\PR&i;i5i)roN)rrc)�old_filterss r�save_restore_warnings_filtersr��s=����"�"�1�%�K�*�
�)�������k������s�A�4�A�A	�	Ac�@�\P!R\^R7R#)z�This is used in test_support test to ensure support.ignore_deprecations_from() works as expected. You should not be seeing this.)�
stacklevelN)rr)r
r9r8r�_warn_about_deprecationr��s���M�M�	*�	��r8)r)F)�
contextlibr4rrvrprrr*r:�objectr<�contextmanagerrdrarirlrbr�r�r9r8r�<module>r�s������	�
��-�$�#$�$�-1�$�:
� )�v�)�.���+��+�.���(*�W�u�$��$�0������"%)�P���*��*�r8

Youez - 2016 - github.com/yon3zu
LinuXploit