Vc4RdZddlmZddlmZmZiddddddd d d d d ddddddddddddddddddddd d!d"id#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdDdEdFdGdHdIdJdJdJdKdLdLdMdNdOZdPZefdQZGdRdSej Z dTS)Uz/Fix incompatible imports and module references.) fixer_base)Name attr_chainStringIOio cStringIOcPicklepickle __builtin__builtinscopy_regcopyregQueuequeue SocketServer socketserver ConfigParser configparserreprreprlib FileDialogztkinter.filedialog tkFileDialog SimpleDialogztkinter.simpledialogtkSimpleDialogtkColorChooserztkinter.colorchoosertkCommonDialogztkinter.commondialogDialogztkinter.dialogTkdndz tkinter.dndtkFontz tkinter.font tkMessageBoxztkinter.messagebox ScrolledTextztkinter.scrolledtext Tkconstantsztkinter.constantsTixz tkinter.tixttkz tkinter.ttkTkintertkinter markupbase _markupbase_winregwinregthread_thread dummy_thread _dummy_threaddbhashzdbm.bsddumbdbmzdbm.dumbdbmzdbm.ndbmgdbmzdbm.gnu xmlrpclibz xmlrpc.clientDocXMLRPCServerz xmlrpc.serverz http.clientz html.entitiesz html.parserz http.cookieszhttp.cookiejarz http.server subprocess collectionsz urllib.parsezurllib.robotparser)SimpleXMLRPCServerhttplibhtmlentitydefs HTMLParserCookie cookielibBaseHTTPServerSimpleHTTPServer CGIHTTPServercommands UserStringUserListurlparse robotparserc^ddtt|zdzS)N(|))joinmapr)memberss 2/usr/lib64/python3.11/lib2to3/fixes/fix_imports.py alternatesrM=s( #dG,,-- - 33c#Kdd|D}t|}d|d|dVd|zVd|d|d Vd |zVdS) Nz | cg|]}d|zS)zmodule_name='%s').0keys rL z!build_pattern..BsGGG-3GGGrNz$name_import=import_name< 'import' ((z;) | multiple_imports=dotted_as_names< any* (z) any* >) > zimport_from< 'from' (%s) 'import' ['('] ( any | import_as_name< any 'as' any > | import_as_names< any* >) [')'] > z(import_name< 'import' (dotted_as_name< (zg) 'as' any > | multiple_imports=dotted_as_names< any* dotted_as_name< (z!) 'as' any > any* >) > z3power< bare_with_attr=(%s) trailer<'.' any > any* >)rIrMkeys)mappingmod_list bare_namess rL build_patternrYAszzGGwGGGHHHGLLNN++JJ888 %%%%  888 %%%% @* LLLLLLrNcNeZdZdZdZeZdZdZfdZ fdZ fdZ dZ xZ S) FixImportsTcPdt|jS)NrG)rIrYrV)selfs rLrYzFixImports.build_pattern`sxx dl33444rNc||_tt|dSN)rYPATTERNsuperr[compile_pattern)r^ __class__s rLrczFixImports.compile_patterncs:))++  j$//11111rNctt|j|}|r1d|vr+tfdt |dDrdS|SdS)Nbare_with_attrc3.K|]}|VdSr`rQ)rRobjmatchs rL z#FixImports.match..qs+IIsc IIIIIIrNparentF)rbr[rianyr)r^noderesultsrirds @rLrizFixImports.matchjsxj$''-%++   w. IIIIjx.H.HIIIII uNurNchtt|||i|_dSr`)rbr[ start_treereplace)r^treefilenamerds rLrpzFixImports.start_treevs. j$**4::: rNc|d}|r|j}|j|}|t ||jd|vr ||j|<d|vr/||}|r|||dSdSdS|dd}|j|j}|r+|t ||jdSdS)N module_name)prefix name_importmultiple_importsrf)getvaluerVrqrrvri transform)r^rmrn import_modmod_namenew_name bare_names rLr|zFixImports.transformzs-[[//  K!'H|H-H   tHZ5FGGG H H H' 2*2 X&!W, 2 **T**2NN411111 2 2 22 01!4I|'' 88H K!!$x 8H"I"I"IJJJJJ K KrN)__name__ __module__ __qualname__ BM_compatiblekeep_line_orderMAPPINGrV run_orderrYrcrirpr| __classcell__)rds@rLr[r[UsMOGI55522222     KKKKKKKrNr[N) __doc__r fixer_utilrrrrMrYBaseFixr[rQrNrLrs55))))))))2 :2  2  h2  :2  y 2  G 2  > 2  >2  92  -2  /2  12  32  32  32  %2  M!2 2 " ^#2 $ /%2 & 1'2 ( -)2 * -+2 , --2 . i/2 0 12 2 h32 4 Y52 6 ?72 : Y;2 < j=2 > *?2 @ 9A2 B C2 D oE2 2 F"1#-'#(*,)#'%&/c2 2 2 j444"MMMM(<K<K<K<K<K#<K<K<K<K<KrN