î
\á[\e  ã               @   sO   d  Z  d d l m Z d d l m Z m Z m Z Gd d „  d e j ƒ Z d S)z/Fixer that transforms `xyzzy` into repr(xyzzy).é   )Ú
fixer_base)ÚCallÚNameÚparenthesizec               @   s(   e  Z d  Z d Z d Z d d „  Z d S)ÚFixReprTz7
              atom < '`' expr=any '`' >
              c             C   sS   | d j  ƒ  } | j |  j j k r4 t | ƒ } n  t t d ƒ | g d | j ƒS)NÚexprÚreprÚprefix)ZcloneÚtypeZsymsZ	testlist1r   r   r   r	   )ÚselfZnodeZresultsr   © r   ú,/usr/lib/python3.4/lib2to3/fixes/fix_repr.pyÚ	transform   s    zFixRepr.transformN)Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZPATTERNr   r   r   r   r   r      s   r   N)	Ú__doc__Ú r   Z
fixer_utilr   r   r   ZBaseFixr   r   r   r   r   Ú<module>   s   