AlkantarClanX12

Your IP : 18.119.125.61


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_callable.cpython-34.pyo

�
j f�@s[dZddlmZddlmZmZmZmZmZGdd�dej	�Z
dS)z�Fixer for callable().

This converts callable(obj) into isinstance(obj, collections.Callable), adding a
collections import if needed.�)�
fixer_base)�Call�Name�String�Attr�touch_importc@s.eZdZdZdZdZdd�ZdS)�FixCallableTZprea
    power< 'callable'
           trailer< lpar='('
                    ( not(arglist | argument<any '=' any>) func=any
                      | func=arglist<(not argument<any '=' any>) any ','> )
                    rpar=')' >
           after=any*
    >
    cCss|d}tddd|�|j�td�g}|jttd�td���ttd�|d|j�S)N�func�collections�nodez, �Callable�
isinstance�prefix)rZcloner�extendrrrr)�selfrZresultsr	�args�r�?/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_callable.py�	transforms

"zFixCallable.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZorderZPATTERNrrrrrr
srN)�__doc__Zlib2to3rZlib2to3.fixer_utilrrrrrZBaseFixrrrrr�<module>s(