| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 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 : /Python315/Lib/importlib/metadata/__pycache__/ |
Upload File : |
R
>lqj�
c �8 � ] QH Gs ] PHs] PHs Q Q2 sP! )� )�annotationsc � � \ sQ s]sQsQ
s\11Q ksQ s\ Q 2 s
\ Q 2 s\ Q 2 sQ s
Q sQ \-Q
ksQ sQsP! )�
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 � � Vm P! �N)�
exceptions)�selfr s &&�0C:\Python315\\Lib\importlib\metadata\_context.py�__init__�ExceptionTrap.__init__, s � �$�� c � � U ! r � �r s &r � __enter__�ExceptionTrap.__enter__/ s � ��r c �* � U O ] * ! �r ��exc_infor s &r �type�ExceptionTrap.type2 � � ��}�}�Q��r c �* � U O ]* ! )� r r s &r �value�ExceptionTrap.value6 r r c �* � U O ]* ! )� r r s &r �tb�ExceptionTrap.tb: r r c �t � U] * oS9% c [ V O 2 oU% c Vm U! r )�
issubclassr r )r r r �matchess &* r �__exit__�ExceptionTrap.__exit__>