Hacked By AnonymousFox
o
6��f4 � @ s@ d Z ddlmZ ddlmZmZ i dd�dd�dd�d d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�i d#d$�d%d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�d3d4�d5d6�d7d8�d9d:�d;d<�d=d>�d?d@�dAdB�dCdD��dDdEdFdGdHdIdJdJdJdKdLdLdMdNdO��ZdPdQ� ZefdRdS�ZG dTdU� dUej �Z
dVS )Wz/Fix incompatible imports and module references.� )�
fixer_base)�Name�
attr_chain�StringIO�ioZ cStringIOZcPickle�pickleZ__builtin__�builtinsZcopy_reg�copyregZQueue�queueZSocketServerZsocketserverZConfigParserZconfigparser�repr�reprlibZ
FileDialogztkinter.filedialogZtkFileDialogZSimpleDialogztkinter.simpledialogZtkSimpleDialogZtkColorChooserztkinter.colorchooserZtkCommonDialogztkinter.commondialogZDialogztkinter.dialogZTkdndztkinter.dndZtkFontztkinter.fontZtkMessageBoxztkinter.messageboxZScrolledTextztkinter.scrolledtextZTkconstantsztkinter.constantsZTixztkinter.tixZttkztkinter.ttkZTkinterZtkinterZ
markupbaseZ_markupbaseZ_winreg�winreg�thread�_threadZdummy_threadZ
_dummy_threadZdbhashzdbm.bsdZdumbdbmzdbm.dumbZdbmzdbm.ndbmZgdbmzdbm.gnuZ xmlrpclibz
xmlrpc.clientZDocXMLRPCServerz
xmlrpc.serverzhttp.clientz
html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server�
subprocess�collectionszurllib.parsezurllib.robotparser)ZSimpleXMLRPCServerZhttplibZhtmlentitydefsZ
HTMLParserZCookieZ cookielibZBaseHTTPServerZSimpleHTTPServerZ
CGIHTTPServerZcommands�
UserString�UserListZurlparseZrobotparserc C s dd� tt| �� d S )N�(�|�))�join�mapr )�members� r �@/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_imports.py�
alternates= s r c c sV � d� dd� | D ��}t| �� �}d||f V d| V d||f V d| V d S )Nz | c S s g | ]}d | �qS )zmodule_name='%s'r )�.0�keyr r r �
<listcomp>B s 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* >)r r �keys)�mappingZmod_listZ
bare_namesr r r �
build_patternA s ����r"