Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib2to3/fixes/fix_itertools_imports.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@sOdZddlmZddlmZmZmZdejfd��YZdS(sA Fixer for imports of itertools.(imap|ifilter|izip|ifilterfalse) i�(t
fixer_base(t	BlankLinetsymsttokentFixItertoolsImportscBs$eZeZde�Zd�ZRS(sT
              import_from< 'from' 'itertools' 'import' imports=any >
              cCs�|d}|jtjks&|jr2|g}n	|j}x�|ddd�D]�}|jtjkry|j}|}n#|jtjkr�dS|jd}|j}|dkr�d|_|j	�qO|dkrO|j
�|d	d
kr�nd|_qOqOW|jp|g}t}	x=|D]5}|	rN|jtjkrN|j	�q#|	tN}	q#Wx0|r�|d
jtjkr�|j
�j	�q_W|jp�t|dd�s�|jdkr�|j}
t�}|
|_|SdS(Ntimportsiiuimapuizipuifilteruifilterfalseuizip_longestiufufilterfalseuzip_longesti�tvalue(uimapuizipuifilter(uifilterfalseuizip_longest(ttypeRtimport_as_nametchildrenRtNAMERtSTARtNonetremovetchangedtTruetCOMMAtpoptgetattrtparenttprefixR(tselftnodetresultsRR	tchildtmembert	name_nodetmember_nametremove_commatp((s9/sys/lib/python2.7/lib2to3/fixes/fix_itertools_imports.pyt	transformsB
			
		



			(t__name__t
__module__Rt
BM_compatibletlocalstPATTERNR(((s9/sys/lib/python2.7/lib2to3/fixes/fix_itertools_imports.pyRs
N(	t__doc__tlib2to3Rtlib2to3.fixer_utilRRRtBaseFixR(((s9/sys/lib/python2.7/lib2to3/fixes/fix_itertools_imports.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.