AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/ |
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/fix_next.cpython-33.pyc |
� ��ff c @ s� d Z d d l m Z d d l m Z d d l m Z d d l m Z m Z m Z d Z Gd d � d e j � Z d d � Z d d � Z d d � Z d S( u. Fixer for it.next() -> next(it), per PEP 3114.i ( u token( u python_symbols( u fixer_base( u Nameu Callu find_bindingu; Calls to builtin next() possibly shadowed by global bindingc sD | Ee Z d Z d Z d Z d Z � f d d � Z d d � Z � S( u FixNextu� power< base=any+ trailer< '.' attr='next' > trailer< '(' ')' > > | power< head=any+ trailer< '.' attr='next' > not trailer< '(' ')' > > | classdef< 'class' any+ ':' suite< any* funcdef< 'def' name='next' parameters< '(' NAME ')' > any+ > any* > > | global=global_stmt< 'global' any* 'next' any* > u prec sW t t | � j | | � t d | � } | rJ | j | t � d | _ n d | _ d S( Nu nextTF( u superu FixNextu start_treeu find_bindingu warningu bind_warningu Trueu shadowed_nextu False( u selfu treeu filenameu n( u __class__( u; /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_next.pyu start_tree$ s u FixNext.start_treec C sw | s t � | j d � } | j d � } | j d � } | r� | j rg | j t d d | j �� qsd d � | D� } d | d _ | j t t d d | j �| � � n� | r� t d d | j �} | j | � n� | rKt | � r5| d } d j d d � | D� � j � d k r1| j | t � n d S| j t d � � n( d | k rs| j | t � d | _ n d S( Nu baseu attru nameu __next__u prefixc S s g | ] } | j � � q S( ( u clone( u .0u n( ( u; /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_next.pyu <listcomp>9 s u% FixNext.transform.<locals>.<listcomp>u i u nextu headc S s g | ] } t | � � q S( ( u str( u .0u n( ( u; /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_next.pyu <listcomp>E s u __builtin__u globalT( u AssertionErroru getu shadowed_nextu replaceu Nameu prefixu Callu is_assign_targetu joinu stripu warningu bind_warningu True( u selfu nodeu resultsu baseu attru nameu nu head( ( u; /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_next.pyu transform. s. ( (u FixNext.transformT( u __name__u __module__u __qualname__u Trueu BM_compatibleu PATTERNu orderu start_treeu transform( u __locals__( ( u __class__u; /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_next.pyu FixNext s u FixNextc C s] t | � } | d k r d Sx: | j D]/ } | j t j k rB d St | | � r&