ok
Direktori : /proc/self/root/lib64/python3.6/lib2to3/fixes/__pycache__/ |
Current File : //proc/self/root/lib64/python3.6/lib2to3/fixes/__pycache__/fix_imports.cpython-36.opt-1.pyc |
3 \4 � 1 @ s� d Z ddlmZ ddlmZmZ ddddddd d dddd d ddddddddddddddddddd d!d"d"d#d$d%d&d'd(d(d(d)d*d*d+d,d-�0Zd.d/� Zefd0d1�ZG d2d3� d3ej �Z d4S )5z/Fix incompatible imports and module references.� )� fixer_base)�Name� attr_chain�io�pickle�builtins�copyregZqueueZsocketserverZconfigparser�reprlibztkinter.filedialogztkinter.simpledialogztkinter.colorchooserztkinter.commondialogztkinter.dialogztkinter.dndztkinter.fontztkinter.messageboxztkinter.scrolledtextztkinter.constantsztkinter.tixztkinter.ttkZtkinterZ_markupbase�winreg�_threadZ _dummy_threadzdbm.bsdzdbm.dumbzdbm.ndbmzdbm.gnuz xmlrpc.clientz xmlrpc.serverzhttp.clientz html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server� subprocess�collectionszurllib.parsezurllib.robotparser)0�StringIOZ cStringIOZcPickleZ__builtin__Zcopy_regZQueueZSocketServerZConfigParser�reprZ FileDialogZtkFileDialogZSimpleDialogZtkSimpleDialogZtkColorChooserZtkCommonDialogZDialogZTkdndZtkFontZtkMessageBoxZScrolledTextZTkconstantsZTixZttkZTkinterZ markupbase�_winregZthreadZdummy_threadZdbhashZdumbdbmZdbmZgdbmZ xmlrpclibZDocXMLRPCServerZSimpleXMLRPCServerZhttplibZhtmlentitydefsZ HTMLParserZCookieZ cookielibZBaseHTTPServerZSimpleHTTPServerZ CGIHTTPServerZcommands� UserString�UserListZurlparseZrobotparserc C s ddj tt| �� d S )N�(�|�))�join�mapr )�members� r �#/usr/lib64/python3.6/fix_imports.py� alternates= s r c c sT dj dd� | D ��}t| j� �}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! c sT e Zd ZdZdZeZdZdd� Z� fdd�Z � fdd�Z � fd d �Zdd� Z� Z S ) � FixImportsT� c C s dj t| j��S )Nr )r r! r )�selfr r r r! ` s zFixImports.build_patternc s | j � | _tt| �j� d S )N)r! ZPATTERN�superr"