File: //opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_cmp.pyc
�
�A�[c           @  sY   d  Z  d d l m Z d d l m Z d d l m Z d Z d e j f d �  �  YZ	 d S(	   u�   
Fixer for the cmp() function on Py2, which was removed in Py3.
Adds this import line::
    from past.builtins import cmp
if cmp() is called in the code.
i����(   t   unicode_literals(   t
   fixer_base(   t   touch_import_topu
   name='cmp't   FixCmpc           B  s,   e  Z e Z d  Z d j e � Z d �  Z RS(   i	   us   
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              c         C  s!   | d } t  d | j | � d  S(   Nu   nameu
   past.builtins(   R   t   value(   t   selft   nodet   resultst   name(    (    sJ   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_cmp.pyt	   transform   s    
(	   t   __name__t
   __module__t   Truet
   BM_compatiblet	   run_ordert   formatt
   expressiont   PATTERNR	   (    (    (    sJ   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_cmp.pyR      s   N(
   t   __doc__t
   __future__R    t   lib2to3R   t   libfuturize.fixer_utilR   R   t   BaseFixR   (    (    (    sJ   /opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_cmp.pyt   <module>
   s