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.pyc



��Yf4�`@s�dZddlmZddlmZmZddddddd	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@dAdBdCdDdEdDdFdGdHdIdJdKdLdMdNdOdPdQdRdQdSdQdTdUdVdWdXdWdYdZd[d\i0Zd]d^�Zed_d`�ZGdadb�dbej	�Z
dcS)dz/Fix incompatible imports and module references.�)�
fixer_base)�Name�
attr_chain�StringIO�ioZ	cStringIOZcPickle�pickleZ__builtin__�builtinsZcopy_reg�copyregZQueueZqueueZSocketServerZsocketserverZConfigParserZconfigparser�repr�reprlibZ
FileDialogztkinter.filedialogZtkFileDialogZSimpleDialogztkinter.simpledialogZtkSimpleDialogZtkColorChooserztkinter.colorchooserZtkCommonDialogztkinter.commondialogZDialogztkinter.dialogZTkdndztkinter.dndZtkFontztkinter.fontZtkMessageBoxztkinter.messageboxZScrolledTextztkinter.scrolledtextZTkconstantsztkinter.constantsZTixztkinter.tixZttkztkinter.ttkZTkinterZtkinterZ
markupbaseZ_markupbase�_winreg�winregZthread�_threadZdummy_threadZ
_dummy_threadZdbhashzdbm.bsdZdumbdbmzdbm.dumbZdbmzdbm.ndbmZgdbmzdbm.gnuZ	xmlrpclibz
xmlrpc.clientZDocXMLRPCServerz
xmlrpc.serverZSimpleXMLRPCServerZhttplibzhttp.clientZhtmlentitydefsz
html.entitiesZ
HTMLParserzhtml.parserZCookiezhttp.cookiesZ	cookielibzhttp.cookiejarZBaseHTTPServerzhttp.serverZSimpleHTTPServerZ
CGIHTTPServerZcommands�
subprocess�
UserString�collections�UserListZurlparsezurllib.parseZrobotparserzurllib.robotparsercCsddjtt|��dS)N�(�|�))�join�mapr
)Zmembers�r�>/opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_imports.py�
alternates=srccsbdjdd�|D��}t|j��}d||fVd|Vd||fVd|VdS)Nz | cSsg|]}d|�qS)zmodule_name='%s'r)�.0�keyrrr�
<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* >)rr�keys)�mappingZmod_listZ
bare_namesrrr�
build_patternAs	r csveZdZdZdZeZdZdd�Z�fdd�Z	�fdd�Z
�fd	d
�Zdd�Z�S)
�
FixImportsT�cCsdjt|j��S)Nr)rr r)�selfrrrr `szFixImports.build_patterncs&|j�|_tt|�j�dS)N)r ZPATTERN�superr!�compile_pattern)r#)�	__class__rrr%cszFixImports.compile_patterncsdtt|�j��|�}|r`d|kr\t�fdd�t|d�D��r\dS|SdS)N�bare_with_attrc3s|]}�|�VqdS)Nr)r�obj)�matchrr�	<genexpr>qsz#FixImports.match.<locals>.<genexpr>�parentF)r$r!r)�anyr)r#�node�results)r&)r)rr)js(zFixImports.matchcs&tt|�j||�i|_dS)N)r$r!�
start_tree�replace)r#Ztree�filename)r&rrr/vszFixImports.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)NZmodule_name�prefixZname_importZmultiple_importsr'�)�get�valuerr0rr2r)�	transform)r#r-r.Z
import_modZmod_name�new_nameZ	bare_namerrrr6zs	

zFixImports.transform)
�__name__�
__module__�__qualname__Z
BM_compatibleZkeep_line_order�MAPPINGrZ	run_orderr r%r)r/r6rr)r&rr!Usr!N)�__doc__�rZ
fixer_utilrrr;rr ZBaseFixr!rrrr�<module>sj

Hacked By AnonymousFox1.0, Coded By AnonymousFox