Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/lib2to3/fixes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/lib2to3/fixes/__pycache__/fix_imports.cpython-38.opt-2.pyc
U

?��g4�1@s�ddlmZddlmZmZdddddddd	d
ddddd
ddddddddddddddddddd d!d!d"d#d$d%d&d'd'd'd(d)d)d*d+d,�0Zd-d.�Zefd/d0�ZGd1d2�d2ej�Z	d3S)4�)�
fixer_base)�Name�
attr_chain�io�pickle�builtins�copyreg�queue�socketserver�configparser�reprlibztkinter.filedialogztkinter.simpledialogztkinter.colorchooserztkinter.commondialogztkinter.dialogztkinter.dndztkinter.fontztkinter.messageboxztkinter.scrolledtextztkinter.constantsztkinter.tixztkinter.ttk�tkinter�_markupbase�winreg�_thread�
_dummy_threadzdbm.bsdzdbm.dumbzdbm.ndbmzdbm.gnuz
xmlrpc.clientz
xmlrpc.serverzhttp.clientz
html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server�
subprocess�collectionszurllib.parsezurllib.robotparser)0�StringIO�	cStringIO�cPickle�__builtin__�copy_reg�Queue�SocketServer�ConfigParser�repr�
FileDialog�tkFileDialog�SimpleDialog�tkSimpleDialog�tkColorChooser�tkCommonDialog�Dialog�Tkdnd�tkFont�tkMessageBox�ScrolledText�Tkconstants�Tix�ttk�Tkinter�
markupbase�_winreg�thread�dummy_thread�dbhash�dumbdbm�dbm�gdbm�	xmlrpclib�DocXMLRPCServer�SimpleXMLRPCServer�httplib�htmlentitydefs�
HTMLParser�Cookie�	cookielib�BaseHTTPServer�SimpleHTTPServer�
CGIHTTPServer�commands�
UserString�UserList�urlparse�robotparsercCsdd�tt|��dS)N�(�|�))�join�mapr)�members�rJ�8/opt/cppython/lib/python3.8/lib2to3/fixes/fix_imports.py�
alternates=srLccsTd�dd�|D��}t|���}d||fVd|Vd||fVd|VdS)Nz | cSsg|]}d|�qS)zmodule_name='%s'rJ)�.0�keyrJrJrK�
<listcomp>Bsz!build_pattern.<locals>.<listcomp>zyname_import=import_name< 'import' ((%s) |
               multiple_imports=dotted_as_names< any* (%s) any* >) >
          z�import_from< 'from' (%s) 'import' ['(']
              ( any | import_as_name< any 'as' any > |
                import_as_names< any* >)  [')'] >
          z�import_name< 'import' (dotted_as_name< (%s) 'as' any > |
               multiple_imports=dotted_as_names<
                 any* dotted_as_name< (%s) 'as' any > any* >) >
          z3power< bare_with_attr=(%s) trailer<'.' any > any* >)rGrL�keys)�mappingZmod_listZ
bare_namesrJrJrK�
build_patternAs���rRcsTeZdZdZdZeZdZdd�Z�fdd�Z	�fdd�Z
�fd	d
�Zdd�Z�Z
S)
�
FixImportsT�cCsd�t|j��S)NrE)rGrRrQ��selfrJrJrKrR`szFixImports.build_patterncs|��|_tt|���dS�N)rRZPATTERN�superrS�compile_patternrU��	__class__rJrKrYcs
zFixImports.compile_patterncsHtt|�j��|�}|rDd|kr@t�fdd�t|d�D��r@dS|SdS)N�bare_with_attrc3s|]}�|�VqdSrWrJ)rM�obj��matchrJrK�	<genexpr>qsz#FixImports.match.<locals>.<genexpr>�parentF)rXrSr_�anyr)rV�node�resultsrZr^rKr_js�zFixImports.matchcstt|��||�i|_dSrW)rXrS�
start_tree�replace)rVZtree�filenamerZrJrKrevszFixImports.start_treecCs�|�d�}|rh|j}|j|}|�t||jd��d|krD||j|<d|kr�|�|�}|r�|�||�n2|dd}|j�|j�}|r�|�t||jd��dS)N�module_name)�prefixZname_importZmultiple_importsr\�)�get�valuerQrfrrir_�	transform)rVrcrdZ
import_modZmod_name�new_nameZ	bare_namerJrJrKrmzs



zFixImports.transform)�__name__�
__module__�__qualname__Z
BM_compatibleZkeep_line_order�MAPPINGrQZ	run_orderrRrYr_rerm�
__classcell__rJrJrZrKrSUsrSN)
�rZ
fixer_utilrrrrrLrRZBaseFixrSrJrJrJrK�<module>sj�5

F1le Man4ger