ó
è¾bc           @   sC   d  Z  d d l m Z d d l m Z d e j f d „  ƒ  YZ d S(   s4   Fixer that changes buffer(...) into memoryview(...).i   (   t
   fixer_base(   t   Namet	   FixBufferc           B   s#   e  Z e Z e Z d  Z d „  Z RS(   sR   
              power< name='buffer' trailer< '(' [any] ')' > any* >
              c         C   s*   | d } | j  t d d | j ƒƒ d  S(   Nt   nameu
   memoryviewt   prefix(   t   replaceR   R   (   t   selft   nodet   resultsR   (    (    s.   /usr/lib/python2.7/lib2to3/fixes/fix_buffer.pyt	   transform   s    
(   t   __name__t
   __module__t   Truet   BM_compatiblet   explicitt   PATTERNR	   (    (    (    s.   /usr/lib/python2.7/lib2to3/fixes/fix_buffer.pyR      s   N(   t   __doc__t    R    t
   fixer_utilR   t   BaseFixR   (    (    (    s.   /usr/lib/python2.7/lib2to3/fixes/fix_buffer.pyt   <module>   s   