⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
lib2to3
/
fixes
/
__pycache__
/
View File Name :
fix_throw.cpython-310.pyc
o bc. @ sZ d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z m Z mZ G dd dejZ dS ) zFixer for generator.throw(E, V, T). g.throw(E) -> g.throw(E) g.throw(E, V) -> g.throw(E(V)) g.throw(E, V, T) -> g.throw(E(V).with_traceback(T)) g.throw("foo"[, V[, T]]) will warn about string exceptions. )pytree)token) fixer_base)NameCallArgListAttris_tuplec @ s e Zd ZdZdZdd ZdS )FixThrowTz power< any trailer< '.' 'throw' > trailer< '(' args=arglist< exc=any ',' val=any [',' tb=any] > ')' > > | power< any trailer< '.' 'throw' > trailer< '(' exc=any ')' > > c C s | j }|d }|jtju r| |d d S |d}|d u r"d S | }t|r7dd |jdd D }nd|_ |g}|d }d |v rl|d }d|_ t ||} t| tdt |gg } |t|j| d S |t || d S )Nexcz+Python 3 does not support string exceptionsvalc S s g | ]}| qS )clone).0cr r ./usr/lib/python3.10/lib2to3/fixes/fix_throw.py
) s z&FixThrow.transform.
.
argstbwith_traceback)symsr typer STRINGcannot_convertgetr childrenprefixr r r r replacer Nodepower)selfnoderesultsr r r r throw_argsr ewith_tbr r r transform s* zFixThrow.transformN)__name__ __module____qualname__ BM_compatiblePATTERNr) r r r r r s r N)__doc__r r pgen2r r fixer_utilr r r r r BaseFixr r r r r
s