????
Current Path : /usr/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/ |
Current File : //usr/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/fix_next_call.cpython-36.pyc |
3 �cV � @ sn d Z ddlmZ ddlmZ ddlmZ ddlm Z m Z mZ dZG dd� dej �Zd d � Zdd� Zd d� ZdS )a Based on fix_next.py by Collin Winter. Replaces it.next() -> next(it), per PEP 3114. Unlike fix_next.py, this fixer doesn't replace the name of a next method with __next__, which would break Python 2 compatibility without further help from fixers in stage 2. � )�token)�python_symbols)� fixer_base)�Name�Call�find_bindingz;Calls to builtin next() possibly shadowed by global bindingc s0 e Zd ZdZdZdZ� fdd�Zdd� Z� ZS )�FixNextCallTz� power< base=any+ trailer< '.' attr='next' > trailer< '(' ')' > > | power< head=any+ trailer< '.' attr='next' > not trailer< '(' ')' > > | global=global_stmt< 'global' any* 'next' any* > Zprec s>