관리-도구
편집 파일: fix_throw.cpython-312.opt-1.pyc
� �Q�f. � �r � d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z m Z mZ G d� dej � Z y) 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� Zy)�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 � }|j t j u r| j |d� y |j d� }|�y |j � }t |� r+|j dd D �cg c] }|j � �� }}n d|_ |g}|d }d|v ry|d j � } d| _ t ||� } t | t d � � t | g� gz }|j t j |j"