Lno#KS P d dl mZ d dlmZmZ i dddddddd d
ddd
ddddddddddddddddddddd d!i d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;dd?d@dAdBdCdCdDdEdFdGdHdIdIdIdJdKdKdLdMdNZdO ZefdPZ G dQ dRej Z dSS )T )
fixer_base)Name
attr_chainStringIOio cStringIOcPicklepickle__builtin__builtinscopy_regcopyregQueuequeueSocketServersocketserverConfigParserconfigparserreprreprlib
FileDialogztkinter.filedialogtkFileDialogSimpleDialogztkinter.simpledialogtkSimpleDialogtkColorChooserztkinter.colorchoosertkCommonDialogztkinter.commondialogDialogztkinter.dialogTkdndztkinter.dndtkFontztkinter.fonttkMessageBoxztkinter.messageboxScrolledTextztkinter.scrolledtextTkconstantsztkinter.constantsTixztkinter.tixttkztkinter.ttkTkintertkinter
markupbase_markupbase_winregwinregthread_threaddummy_thread
_dummy_threaddbhashzdbm.bsddumbdbmzdbm.dumbdbmzdbm.ndbmgdbmzdbm.gnu xmlrpclibz
xmlrpc.clientDocXMLRPCServerz
xmlrpc.serverzhttp.clientz
html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server
subprocesscollectionszurllib.parsezurllib.robotparser)SimpleXMLRPCServerhttplibhtmlentitydefs
HTMLParserCookie cookielibBaseHTTPServerSimpleHTTPServer
CGIHTTPServercommands
UserStringUserListurlparserobotparserc ^ dd t t | z dz S )N(|))joinmapr )memberss @/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_imports.py
alternatesrM = s( #dG,,---33 c # K d d | D }t | }d|d|dV d|z V d|d|d V d
|z V d S )Nz | c g | ]}d |z S )zmodule_name='%s' ).0keys rL
z!build_pattern..B s GGG-3GGGrN z$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* >)rI rM keys)mappingmod_list
bare_namess rL
build_patternrY A s zzGGwGGGHHHGLLNN++JJ 888% % % % 888% % % % @*
LLLLLLrN c N e Zd ZdZdZeZdZd Z fdZ fdZ
fdZd Z xZ
S )
FixImportsT c P d t | j S )NrG )rI rY rV )selfs rL rY zFixImports.build_pattern` s xx
dl33444rN c | | _ t t | d S N)rY PATTERNsuperr[ compile_pattern)r^ __class__s rL rc zFixImports.compile_patternc s: ))++
j$//11111rN c t t | j | }|r1d|vr+t fdt |d D rdS |S dS )Nbare_with_attrc 3 . K | ]} | V d S r` rQ )rR objmatchs rL z#FixImports.match..q s+ IIsc
IIIIIIrN parentF)rb r[ ri anyr )r^ noderesultsri rd s @rL ri zFixImports.matchj sv j$''-%++ w..IIIIjx.H.HIIIII /uNurN c h t t | || i | _ d S r` )rb r[
start_treereplace)r^ treefilenamerd s rL rp zFixImports.start_treev s.
j$**4:::rN c | d }|r|j }| j | }| t ||j d|v r
|| j |<