관리-도구
편집 파일: fix_callable.cpython-34.pyc
� j f � @ s[ d Z d d l m Z d d l m Z m Z m Z m Z m Z Gd d � d e j � Z d S)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. e Z d Z d Z d Z d Z d d � Z d S)�FixCallableTZprea power< 'callable' trailer< lpar='(' ( not(arglist | argument<any '=' any>) func=any | func=arglist<(not argument<any '=' any>) any ','> ) rpar=')' > after=any* > c C ss | d } t d d d | �| j � t d � g } | j t t d � t d � � � t t d � | d | j �S)N�func�collections�nodez, �Callable� isinstance�prefix)r Zcloner �extendr r r r )�selfr Zresultsr �args� r �?/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_callable.py� transform s "zFixCallable.transformN)�__name__� __module__�__qualname__Z BM_compatibleZorderZPATTERNr r r r r r s r N)�__doc__Zlib2to3r Zlib2to3.fixer_utilr r r r r ZBaseFixr r r r r �<module> s (