Your IP : 3.143.239.63
�
��fH c @ sC d Z d d l m Z d d l m Z Gd d � d e j � Z d S( u, Fixer that cleans up a tuple argument to isinstance after the tokens
in it were fixed. This is mainly used to remove double occurrences of
tokens as a leftover of the long -> int / unicode -> str conversion.
eg. isinstance(x, (int, long)) -> isinstance(x, (int, int))
-> isinstance(x, int)
i ( u
fixer_base( u tokenc B s2 | Ee Z d Z d Z d Z d Z d d � Z d S( u
FixIsinstanceu�
power<
'isinstance'
trailer< '(' arglist< any ',' atom< '('
args=testlist_gexp< any+ >
')' > > ')' >
>
i c C s^ t � } | d } | j } g } t | � } x� | D]� \ } } | j t j k r� | j | k r� | t | � d k r� | | d j t j k r� t | � q5 q� q5 | j
| � | j t j k r5 | j | j � q5 q5 W| r| d j t j k r| d =n t | � d k r@| j }
|
j
| d _
|
j | d � n | | d d � <| j � d S( Nu argsi i i����i����( u setu childrenu enumerateu typeu tokenu NAMEu valueu lenu COMMAu nextu appendu addu parentu prefixu replaceu changed( u selfu nodeu resultsu names_insertedu testlistu argsu new_argsu iteratoru idxu argu atom( ( uA /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu transform s*
!0
u FixIsinstance.transformNT( u __name__u
__module__u __qualname__u Trueu
BM_compatibleu PATTERNu run_orderu transform( u
__locals__( ( uA /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu
FixIsinstance s u
FixIsinstanceN( u __doc__u u
fixer_baseu
fixer_utilu tokenu BaseFixu
FixIsinstance( ( ( uA /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu <module>
s