Current Dir: /snap/core22/2437/usr/lib/python3.10/lib2to3/fixes/__pycache__/

[FILE] fix_apply.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_asserts.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_basestring.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_buffer.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_dict.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_except.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_exec.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_execfile.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_exitfunc.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_filter.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_funcattrs.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_future.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_getcwdu.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_has_key.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_idioms.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_import.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_imports.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_imports2.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_input.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_intern.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_isinstance.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_itertools.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_itertools_imports.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_long.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_map.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_metaclass.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_methodattrs.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_ne.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_next.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_nonzero.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_numliterals.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_operator.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_paren.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_print.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_raise.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_raw_input.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_reduce.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_reload.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_renames.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_repr.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_set_literal.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_standarderror.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_sys_exc.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_throw.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_tuple_params.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_types.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_unicode.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_urllib.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_ws_comma.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_xrange.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_xreadlines.cpython-310.pyc [ edit | delete | rename ]
[FILE] fix_zip.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]

Viewing: /snap/core22/2437/usr/lib/python3.10/lib2to3/fixes/__pycache__/fix_itertools.cpython-310.pyc

o

��bc�@s2dZddlmZddlmZGdd�dej�ZdS)aT Fixer for itertools.(imap|ifilter|izip) --> (map|filter|zip) and
    itertools.ifilterfalse --> itertools.filterfalse (bugs 2360-2363)

    imports from itertools are fixed in fix_itertools_import.py

    If itertools is imported as something else (ie: import itertools as it;
    it.izip(spam, eggs)) method calls will not get fixed.
    �)�
fixer_base)�Namec@s*eZdZdZdZde�ZdZdd�ZdS)�FixItertoolsTz7('imap'|'ifilter'|'izip'|'izip_longest'|'ifilterfalse')z�
              power< it='itertools'
                  trailer<
                     dot='.' func=%(it_funcs)s > trailer< '(' [any] ')' > >
              |
              power< func=%(it_funcs)s trailer< '(' [any] ')' > >
              �cCs�d}|dd}d|vr+|jdvr+|d|d}}|j}|��|��|j�|�|p/|j}|�t|jdd�|d��dS)N�func��it)�ifilterfalse�izip_longest�dot�)�prefix)�valuer
�remove�parent�replacer)�self�node�resultsr
rrr�r�2/usr/lib/python3.10/lib2to3/fixes/fix_itertools.py�	transforms

 zFixItertools.transformN)	�__name__�
__module__�__qualname__�
BM_compatible�it_funcs�locals�PATTERN�	run_orderrrrrrrs�	rN)�__doc__�r�
fixer_utilr�BaseFixrrrrr�<module>s

Upload File: