Hacked By AnonymousFox

Current Path : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_imports.cpython-35.opt-2.pyc



���]4�`@s�ddlmZddlmZmZdddddddd	d
ddd
ddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdCdEdFdGdHdIdJdKdLdMdNdOdPdQdPdRdPdSdTdUdVdWdVdXdYdZd[i0Zd\d]�Zed^d_�ZGd`da�daej�Z	dbS)c�)�
fixer_base)�Name�
attr_chain�StringIO�io�	cStringIO�cPickle�pickle�__builtin__�builtins�copy_reg�copyreg�Queue�queue�SocketServer�socketserver�ConfigParser�configparser�repr�reprlib�
FileDialogztkinter.filedialog�tkFileDialog�SimpleDialogztkinter.simpledialog�tkSimpleDialog�tkColorChooserztkinter.colorchooser�tkCommonDialogztkinter.commondialog�Dialogztkinter.dialog�Tkdndztkinter.dnd�tkFontztkinter.font�tkMessageBoxztkinter.messagebox�ScrolledTextztkinter.scrolledtext�Tkconstantsztkinter.constants�Tixztkinter.tix�ttkztkinter.ttk�Tkinter�tkinter�
markupbase�_markupbase�_winreg�winreg�thread�_thread�dummy_thread�
_dummy_thread�dbhashzdbm.bsd�dumbdbmzdbm.dumb�dbmzdbm.ndbm�gdbmzdbm.gnu�	xmlrpclibz
xmlrpc.client�DocXMLRPCServerz
xmlrpc.server�SimpleXMLRPCServer�httplibzhttp.client�htmlentitydefsz
html.entities�
HTMLParserzhtml.parser�Cookiezhttp.cookies�	cookielibzhttp.cookiejar�BaseHTTPServerzhttp.server�SimpleHTTPServer�
CGIHTTPServer�commands�
subprocess�
UserString�collections�UserList�urlparsezurllib.parse�robotparserzurllib.robotparsercCsddjtt|��dS)N�(�|�))�join�mapr)�members�rJ�0/opt/alt/python35/lib64/python3.5/fix_imports.py�
alternates=srLccsbdjdd�|D��}t|j��}d||fVd|Vd||fVd|VdS)Nz | cSsg|]}d|�qS)zmodule_name='%s'rJ)�.0�keyrJrJrK�
<listcomp>Bs	z!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	rRcsveZdZdZdZeZdZdd�Z�fdd�Z	�fdd�Z
�fd	d
�Zdd�Z�S)
�
FixImportsT�cCsdjt|j��S)NrE)rGrRrQ)�selfrJrJrKrR`szFixImports.build_patterncs&|j�|_tt|�j�dS)N)rRZPATTERN�superrS�compile_pattern)rU)�	__class__rJrKrWcszFixImports.compile_patterncsdtt|�j��|�}|r`d|kr\t�fdd�t|d�D��r\dS|SdS)N�bare_with_attrc3s|]}�|�VqdS)NrJ)rM�obj)�matchrJrK�	<genexpr>qsz#FixImports.match.<locals>.<genexpr>�parentF)rVrSr[�anyr)rU�node�results)rX)r[rKr[js(zFixImports.matchcs&tt|�j||�i|_dS)N)rVrS�
start_tree�replace)rUZtree�filename)rXrJrKravszFixImports.start_treecCs�|jd�}|r�|j}|j|}|jt|d|j��d|kr`||j|<d|kr�|j|�}|r�|j||�nE|dd}|jj|j�}|r�|jt|d|j��dS)N�module_name�prefixZname_importZmultiple_importsrY�)�get�valuerQrbrrer[�	transform)rUr_r`Z
import_modZmod_name�new_nameZ	bare_namerJrJrKrizs	

zFixImports.transform)
�__name__�
__module__�__qualname__Z
BM_compatibleZkeep_line_order�MAPPINGrQZ	run_orderrRrWr[rarirJrJ)rXrKrSUsrSN)
�rZ
fixer_utilrrrnrLrRZBaseFixrSrJrJrJrK�<module>sh

Hacked By AnonymousFox1.0, Coded By AnonymousFox