Viewing File: /opt/alt/python-internal/lib64/python3.11/lib2to3/fixes/__pycache__/fix_imports.cpython-311.pyc



!A?h4RdZddlmZddlmZmZiddddddd	d
dd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.dialogTkdndztkinter.dndtkFontztkinter.fonttkMessageBoxztkinter.messageboxScrolledTextztkinter.scrolledtextTkconstantsztkinter.constantsTixztkinter.tixttkztkinter.ttkTkintertkinter
markupbase_markupbase_winregwinregthread_threaddummy_thread
_dummy_threaddbhashzdbm.bsddumbdbmzdbm.dumbdbmzdbm.ndbmgdbmzdbm.gnu	xmlrpclibz
xmlrpc.clientDocXMLRPCServerz
xmlrpc.serverzhttp.clientz
html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server
subprocesscollectionszurllib.parsezurllib.robotparser)SimpleXMLRPCServerhttplibhtmlentitydefs
HTMLParserCookie	cookielibBaseHTTPServerSimpleHTTPServer
CGIHTTPServercommands
UserStringUserListurlparserobotparserc^ddtt|zdzS)N(|))joinmapr)memberss F/opt/alt/python-internal/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
<listcomp>z!build_pattern.<locals>.<listcomp>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
fdZdZ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	<genexpr>z#FixImports.match.<locals>.<genexpr>qs+IIsc

IIIIIIrNparentF)rbr[rianyr)r^noderesultsrirds   @rLrizFixImports.matchjsvj$''-%++	 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)Nmodule_name)prefixname_importmultiple_importsrf)getvaluerVrqrrvri	transform)r^rmrn
import_modmod_namenew_name	bare_names       rLr|zFixImports.transformzs'[[//
	K!'H|H-HtHZ5FGGGHHH''*2X&!W,,
**T**2NN411111-,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[rQrNrL<module>rs55))))))))2:22h2:2y	2
G2>
2>292-2/212323232%2 M!22"^#2$/%2&1'2(-)2*-+2,--2.i/20122h324Y526?72:Y;2<j=2>*?2@9A2BC2DoE22F"1#-'#(*,)#'%&/c222j444"MMMM(<K<K<K<K<K#<K<K<K<K<KrN
Back to Directory File Manager