£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

i fn                 @   s{   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z m Z m	 Z	 m
 Z
 m Z Gd d   d e j  Z d S)	a[  Fixer for 'raise E, V, T'

raise         -> raise
raise E       -> raise E
raise E, V    -> raise E(V)
raise E, V, T -> raise E(V).with_traceback(T)
raise E, None, T -> raise E.with_traceback(T)

raise (((E, E'), E''), E'''), V -> raise E(V)
raise "foo", V, T               -> warns about string exceptions


CAVEATS:
1) "raise E, V" will be incorrectly translated if V is an exception
   instance. The correct Python 3 idiom is

        raise E from V

   but since we can't detect instance-hood by syntax alone and since
   any client code would have to be changed as well, we don't automate
   this.
   )pytree)token)
fixer_base)NameCallAttrArgListis_tuplec               @   s(   e  Z d  Z d Z d Z d d   Z d S)FixRaiseTzB
    raise_stmt< 'raise' exc=any [',' val=any [',' tb=any]] >
    c             C   s  |  j  } | d j   } | j t j k rE d } |  j | |  d  St |  r x* t |  r} | j d j d j   } qT Wd | _ n  d | k r t	 j
 | j t d  | g  } | j | _ | S| d j   } t |  rd d	   | j d d  D } n d
 | _ | g } d | k r| d j   }	 d
 |	 _ | }
 | j t j k sd| j d k rvt | |  }
 n  t |
 t d   t |	 g  g } t	 j
 | j t d  g |  } | j | _ | St	 j
 | j t d  t | |  g d | j Sd  S)Nexcz+Python 3 does not support string exceptions        valraisec             S   s   g  |  ] } | j     q S )clone).0cr   r   </opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_raise.py
<listcomp>D   s   	 z&FixRaise.transform.<locals>.<listcomp> tbNonewith_tracebackprefix)symsr   typer   STRINGZcannot_convertr	   Zchildrenr   r   ZNodeZ
raise_stmtr   NAMEvaluer   r   r   Zsimple_stmt)selfZnodeZresultsr   r   msgnewr   argsr   eZwith_tbr   r   r   	transform&   s@    	!#			!%"zFixRaise.transformN)__name__
__module____qualname__ZBM_compatibleZPATTERNr'   r   r   r   r   r
      s   r
   N)__doc__r   r   Zpgen2r   r   Z
fixer_utilr   r   r   r   r	   ZBaseFixr
   r   r   r   r   <module>   s
   (