Your IP : 18.218.3.204


Current Path : /opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/fix_throw.cpython-33.pyc

�
��f.c@s{dZddlmZddlmZddlmZddlmZmZm	Z	m
Z
mZGdd�dej�Z
dS(	u�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.i(upytree(utoken(u
fixer_base(uNameuCalluArgListuAttruis_tuplecBs,|EeZdZdZdZdd�ZdS(uFixThrowu�
    power< any trailer< '.' 'throw' >
           trailer< '(' args=arglist< exc=any ',' val=any [',' tb=any] > ')' >
    >
    |
    power< any trailer< '.' 'throw' > trailer< '(' exc=any ')' > >
    cCsG|j}|dj�}|jtjkr?|j|d�dS|jd�}|dkr^dS|j�}t|�r�dd�|j	dd�D�}nd|_
|g}|d}d	|kr-|d	j�}d|_
t||�}	t|	t
d
��t|g�g}
|jtj|j|
��n|jt||��dS(Nuexcu+Python 3 does not support string exceptionsuvalcSsg|]}|j��qS((uclone(u.0uc((u</opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_throw.pyu
<listcomp>)s	u&FixThrow.transform.<locals>.<listcomp>iuuargsutbuwith_tracebacki����(usymsucloneutypeutokenuSTRINGucannot_convertugetuNoneuis_tupleuchildrenuprefixuCalluAttruNameuArgListureplaceupytreeuNodeupower(uselfunodeuresultsusymsuexcuvaluargsu
throw_argsutbueuwith_tb((u</opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_throw.pyu	transforms*	#		
	%uFixThrow.transformNT(u__name__u
__module__u__qualname__uTrueu
BM_compatibleuPATTERNu	transform(u
__locals__((u</opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_throw.pyuFixThrowsuFixThrowN(u__doc__uupytreeupgen2utokenu
fixer_baseu
fixer_utiluNameuCalluArgListuAttruis_tupleuBaseFixuFixThrow(((u</opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_throw.pyu<module>s
(

?>