§
wÙõ_ݹÈmã óp — d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z m
Z
mZ G d„ dej ¦ « Z
dS ) zÖFixer 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)ÚNameÚCallÚArgListÚAttrÚis_tuplec ó — e Zd ZdZdZd„ ZdS )ÚFixThrowTzÉ
power< any trailer< '.' 'throw' >
trailer< '(' args=arglist< exc=any ',' val=any [',' tb=any] > ')' >
>
|
power< any trailer< '.' 'throw' > trailer< '(' exc=any ')' > >
c óÚ — | j }|d ¦ « }|j t j u r| |d¦ « d S | d¦ « }|€d S | ¦ « }t |¦ « rd„ |j dd… D ¦ « }n
d|_ |g}|d }d |v r�|d ¦ « }d|_ t ||¦ « } t | t d
¦ « ¦ « t |g¦ « gz }
| t j |j |
¦ « ¦ « d S | t ||¦ « ¦ « d S )NÚexcz+Python 3 does not support string exceptionsÚvalc ó6 — g | ]}| ¦ « ‘ŒS © )Úclone)Ú.0Úcs ú>/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_throw.pyú