AlkantarClanX12

Your IP : 3.147.73.85


Current Path : /opt/alt/python27/lib64/python2.7/lib2to3/fixes/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyc

�
^
bc@s�dZddlmZddlmZmZi0dd6dd6dd6d	d
6dd6d
d6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d1d26d3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dCdE6dFdG6dHdI6dJdK6dLdM6dNdO6dPdQ6dPdR6dPdS6dTdU6dVdW6dVdX6dYdZ6d[d\6Zd]�Zed^�Zd_ej	fd`��YZ
daS(bs/Fix incompatible imports and module references.i(t
fixer_base(tNamet
attr_chaintiotStringIOt	cStringIOtpickletcPickletbuiltinst__builtin__tcopyregtcopy_regtqueuetQueuetsocketservertSocketServertconfigparsertConfigParsertreprlibtreprstkinter.filedialogt
FileDialogttkFileDialogstkinter.simpledialogtSimpleDialogttkSimpleDialogstkinter.colorchooserttkColorChooserstkinter.commondialogttkCommonDialogstkinter.dialogtDialogstkinter.dndtTkdndstkinter.fontttkFontstkinter.messageboxttkMessageBoxstkinter.scrolledtexttScrolledTextstkinter.constantstTkconstantsstkinter.tixtTixstkinter.ttktttkttkintertTkintert_markupbaset
markupbasetwinregt_winregt_threadtthreadt
_dummy_threadtdummy_threadsdbm.bsdtdbhashsdbm.dumbtdumbdbmsdbm.ndbmtdbmsdbm.gnutgdbms
xmlrpc.clientt	xmlrpclibs
xmlrpc.servertDocXMLRPCServertSimpleXMLRPCServershttp.clientthttplibs
html.entitiesthtmlentitydefsshtml.parsert
HTMLParsershttp.cookiestCookieshttp.cookiejart	cookielibshttp.servertBaseHTTPServertSimpleHTTPServert
CGIHTTPServert
subprocesstcommandstcollectionst
UserStringtUserListsurllib.parseturlparsesurllib.robotparsertrobotparsercCsddjtt|��dS(Nt(t|t)(tjointmapR(tmembers((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyt
alternates=sccsldjg|D]}d|^q
�}t|j��}d||fVd|Vd||fVd|VdS(Ns | smodule_name='%s'syname_import=import_name< 'import' ((%s) |
               multiple_imports=dotted_as_names< any* (%s) any* >) >
          s�import_from< 'from' (%s) 'import' ['(']
              ( any | import_as_name< any 'as' any > |
                import_as_names< any* >)  [')'] >
          s�import_name< 'import' (dotted_as_name< (%s) 'as' any > |
               multiple_imports=dotted_as_names<
                 any* dotted_as_name< (%s) 'as' any > any* >) >
          s3power< bare_with_attr=(%s) trailer<'.' any > any* >(RERHtkeys(tmappingtkeytmod_listt
bare_names((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyt
build_patternAs&	t
FixImportscBsMeZeZeZeZdZd�Zd�Z	d�Z
d�Zd�ZRS(icCsdjt|j��S(NRC(RERNRJ(tself((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyRN`scCs&|j�|_tt|�j�dS(N(RNtPATTERNtsuperROtcompile_pattern(RP((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyRScscsatt|�j��|�}|r]d|krYt�fd�t|d�D��rYtS|StS(Ntbare_with_attrc3s|]}�|�VqdS(N((t.0tobj(tmatch(s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pys	<genexpr>qstparent(RRRORWtanyRtFalse(RPtnodetresults((RWs>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyRWjs%cCs&tt|�j||�i|_dS(N(RRROt
start_treetreplace(RPttreetfilename((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyR]vscCs�|jd�}|r�|j}t|j|�}|jt|d|j��d|kri||j|<nd|kr�|j|�}|r�|j||�q�q�nH|dd}|jj|j�}|r�|jt|d|j��ndS(Ntmodule_nametprefixtname_importtmultiple_importsRTi(	tgettvaluetunicodeRJR^RRbRWt	transform(RPR[R\t
import_modtmod_nametnew_namet	bare_name((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyRhzs	(
t__name__t
__module__tTruet
BM_compatibletkeep_line_ordertMAPPINGRJt	run_orderRNRSRWR]Rh(((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyROUs				N(t__doc__tRt
fixer_utilRRRrRHRNtBaseFixRO(((s>/opt/alt/python27/lib64/python2.7/lib2to3/fixes/fix_imports.pyt<module>sj