Your IP : 18.118.1.63


Current Path : /opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/__pycache__/fix_cmp.cpython-37.pyc

B

�A�[��@sBdZddlmZddlmZddlmZdZGdd�dej�Z	dS)	z�
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.
�)�unicode_literals)�
fixer_base)�touch_import_topz
name='cmp'c@s&eZdZdZdZd�e�Zdd�ZdS)�FixCmpT�	zs
              power<
                 ({0}) trailer< '(' args=[any] ')' >
              rest=any* >
              cCs|d}td|j|�dS)N�namez
past.builtins)r�value)�self�node�resultsr�r�J/opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/fix_cmp.py�	transformszFixCmp.transformN)	�__name__�
__module__�__qualname__Z
BM_compatibleZ	run_order�format�
expressionZPATTERNrrrrr
rs
rN)
�__doc__�
__future__rZlib2to3rZlibfuturize.fixer_utilrrZBaseFixrrrrr
�<module>
s


?>