a
    ´iN  ã                   @   s2   d Z ddlmZ ddlmZ G d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 }|  td|jd�¡ d S )NÚnameÚ
memoryview)Úprefix)Úreplacer   r   )ÚselfZnodeÚresultsr   © r   ú0/usr/lib64/python3.9/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   