File: //opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_bytes.pyo
�
�A�[c           @  sn   d  Z  d d l m Z d d l Z d d l m Z d d l m Z e j d � Z	 d e j
 f d �  �  YZ d S(	   u�   Optional fixer that changes all unprefixed string literals "..." to b"...".
br'abcd' is a SyntaxError on Python 2 but valid on Python 3.
ur'abcd' is a SyntaxError on Python 3 but valid on Python 2.
i����(   t   unicode_literalsN(   t   token(   t
   fixer_baseu   [^bBuUrR]?[\'\"]t   FixBytesc           B  s   e  Z e Z d  Z d �  Z RS(   u   STRINGc         C  sK   | j  t j k rG t j | j � rG | j �  } d | j | _ | Sn  d  S(   Nu   b(   t   typeR   t   STRINGt   _literal_ret   matcht   valuet   clone(   t   selft   nodet   resultst   new(    (    sL   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_bytes.pyt	   transform   s
    (   t   __name__t
   __module__t   Truet
   BM_compatiblet   PATTERNR   (    (    (    sL   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_bytes.pyR      s   (   t   __doc__t
   __future__R    t   ret
   lib2to3.pgen2R   t   lib2to3R   t   compileR   t   BaseFixR   (    (    (    sL   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_bytes.pyt   <module>   s