î
\á[\N  ã               @   sC   d  Z  d d l m Z d d l m Z Gd d „  d e j ƒ Z d S)z4Fixer that changes buffer(...) into memoryview(...).é   )Ú
fixer_base)ÚNamec               @   s.   e  Z d  Z d Z d Z d Z d d „  Z d S)Ú	FixBufferTzR
              power< name='buffer' trailer< '(' [any] ')' > any* >
              c             C   s*   | d } | j  t d d | j ƒƒ d  S)NÚnameÚ
memoryviewÚprefix)Úreplacer   r   )ÚselfZnodeZresultsr   © r
   ú./usr/lib/python3.4/lib2to3/fixes/fix_buffer.pyÚ	transform   s    
zFixBuffer.transformN)Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZexplicitZPATTERNr   r
   r
   r
   r   r      s   r   N)Ú__doc__Ú r   Z
fixer_utilr   ZBaseFixr   r
   r
   r
   r   Ú<module>   s   