HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/libpasteurize/fixes/__pycache__/fix_imports.cpython-36.pyc
3

�cP�"@s�dZddlmZddlmZmZmZmZddlm	Z
ddlmZddl
mZmZddlmZdd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)�!Zd*Zd+Zd,Zd-Zd.Zd/Zd0Zd1Zd2Zd3Zd4d5�ZGd6d7�d7ej�Zd8S)9z8
Fixer for standard library imports renamed in Python 3
�)�
fixer_base)�Name�is_probably_builtin�Newline�does_tree_import)�python_symbols)�token)�Node�Leaf)�touch_import_top�repr�_winregZConfigParserZcopy_regZQueueZSocketServerZ
markupbaseztest.test_supportZdbhashZdbmZdumbdbmZgdbmZ
HTMLParserZhtmlentitydefsZhttplibZCookieZ	cookielibZDialogZFixTkZScrolledTextZTixZTkconstantsZTkdndZTkinterZtkColorChooserZtkCommonDialogZtkFontZttkZtkMessageBoxZturtleZrobotparserZ	xmlrpclibZ__builtin__)!�reprlib�winregZconfigparser�copyregZqueueZsocketserverZ_markupbaseztest.supportzdbm.bsdzdbm.ndbmzdbm.dumbzdbm.gnuzhtml.parserz
html.entitieszhttp.clientzhttp.cookieszhttp.cookiejarztkinter.dialogztkinter._fixztkinter.scrolledtextztkinter.tixztkinter.constantsztkinter.dndztkinter.__init__ztkinter.colorchooserztkinter.commondialogztkinter.fontztkinter.ttkztkinter.messageboxztkinter.turtlezurllib.robotparserz
xmlrpc.client�builtinsz	name='%s'z	attr='%s'z$dotted_name=dotted_name< %s '.' %s >z%sz"power< %s trailer< '.' %s > any* >zpower< %s any* >z:from_import=import_from< 'from' %s 'import' imported=any >z�from_import_submod=import_from< 'from' %s 'import' (%s | import_as_name< %s 'as' renamed=any > | import_as_names< any* (%s | import_as_name< %s 'as' renamed=any >) any* > ) >zrname_import=import_name< 'import' %s > | name_import=import_name< 'import' dotted_as_name< %s 'as' renamed=any > >zAname_import=import_name< 'import' dotted_as_names< names=any* > >c
Cs�d|kr�|jdd�\}}t|}t|}t||f}t|}t|||||f}t||f}t||f}t|}	dj	|||||	f�St|}t||f}t|}t
|}dj	|||f�SdS)z�
    Accepts a string and returns a pattern of possible patterns involving that name
    Called by simple_mapping_to_pattern for each name in the mapping it receives.
    �.�z | 
N)�split�simple_name_match�
subname_match�dotted_name_match�from_import_match�from_import_submod_match�name_import_match�power_twoname_match�power_subname_match�join�power_onename_match)
�name�attrZsimple_nameZsimple_attrZdotted_nameZi_fromZ
i_from_submodZi_nameZu_nameZ	u_subname�r!�!/usr/lib/python3.6/fix_imports.py�all_patternsOs r#c@s6eZdZdjdd�eD��Zdjeef�Zdd�ZdS)�
FixImportsz | 
cCsg|]}t|��qSr!)r#)�.0rr!r!r"�
<listcomp>lszFixImports.<listcomp>cCstdd|�dS)NZfutureZstandard_library)r)�selfZnode�resultsr!r!r"�	transformoszFixImports.transformN)�__name__�
__module__�__qualname__r�MAPPINGZPATTERN�multiple_name_import_matchr)r!r!r!r"r$jsr$N) �__doc__Zlib2to3rZlib2to3.fixer_utilrrrrZlib2to3.pygramrZsymsZ
lib2to3.pgen2rZlib2to3.pytreer	r
Zlibfuturize.fixer_utilrr-rrrrrrrrrr.r#ZBaseFixr$r!r!r!r"�<module>sf