ó u®øQc@s“dZddlmZddlmZmZi0dd6dd6dd6d d 6d d 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.dialogtDialogs tkinter.dndtTkdnds tkinter.fontttkFontstkinter.messageboxt tkMessageBoxstkinter.scrolledtextt ScrolledTextstkinter.constantst Tkconstantss tkinter.tixtTixs tkinter.ttktttkttkintertTkintert _markupbaset markupbasetwinregt_winregt_threadtthreadt _dummy_threadt dummy_threadsdbm.bsdtdbhashsdbm.dumbtdumbdbmsdbm.ndbmtdbmsdbm.gnutgdbms xmlrpc.clientt xmlrpclibs xmlrpc.servertDocXMLRPCServertSimpleXMLRPCServers http.clientthttplibs html.entitiesthtmlentitydefss html.parsert HTMLParsers http.cookiestCookieshttp.cookiejart cookielibs http.servertBaseHTTPServertSimpleHTTPServert CGIHTTPServert subprocesstcommandst collectionst UserStringtUserLists urllib.parseturlparsesurllib.robotparsert robotparsercCsddjtt|ƒƒdS(Nt(t|t)(tjointmapR(tmembers((s//sys/lib/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//sys/lib/python2.7/lib2to3/fixes/fix_imports.pyt build_patternAs & t FixImportscBsMeZeZeZeZdZd„Zd„Z d„Z d„Z d„Z RS(icCsdjt|jƒƒS(NRC(RERNRJ(tself((s//sys/lib/python2.7/lib2to3/fixes/fix_imports.pyRN`scCs&|jƒ|_tt|ƒjƒdS(N(RNtPATTERNtsuperROtcompile_pattern(RP((s//sys/lib/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//sys/lib/python2.7/lib2to3/fixes/fix_imports.pys qstparent(RRRORWtanyRtFalse(RPtnodetresults((RWs//sys/lib/python2.7/lib2to3/fixes/fix_imports.pyRWjs  %cCs&tt|ƒj||ƒi|_dS(N(RRROt start_treetreplace(RPttreetfilename((s//sys/lib/python2.7/lib2to3/fixes/fix_imports.pyR]vscCsļ|jdƒ}|r£|j}t|j|ƒ}|jt|d|jƒƒd|kri||j|sj