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/libfuturize/fixes/__pycache__/fix_UserDict.cpython-36.pyc
3

�c�@sPdZddlmZddlmZmZddlmZmZm	Z	ddiZ
Gdd�de	�Zd	S)
zCFix UserDict.

Incomplete!

TODO: base this on fix_urllib perhaps?
�)�
fixer_base)�Name�
attr_chain)�
alternates�
build_pattern�
FixImports�UserDict�collectionscsTeZdZdZdZeZdZdd�Z�fdd�Z	�fdd�Z
�fd	d
�Zdd�Z�Z
S)
�FixUserdictT�cCsdjt|j��S)N�|)�joinr�mapping)�self�r�"/usr/lib/python3.6/fix_UserDict.pyr5szFixUserdict.build_patterncs|j�|_tt|�j�dS)N)rZPATTERN�superr�compile_pattern)r)�	__class__rrr8s
zFixUserdict.compile_patterncsHtt|�j��|�}|rDd|kr@t�fdd�t|d�D��r@dS|SdS)N�bare_with_attrc3s|]}�|�VqdS)Nr)�.0�obj)�matchrr�	<genexpr>Fsz$FixUserdict.match.<locals>.<genexpr>�parentF)rrr�anyr)r�node�results)r)rrr?szFixUserdict.matchcstt|�j||�i|_dS)N)rr�
start_tree�replace)rZtree�filename)rrrrKszFixUserdict.start_treecCs�|jd�}|rl|j}t|j|�}|jt||jd��d|krH||j|<d|kr�|j|�}|r�|j||�n2|dd}|jj|j�}|r�|jt||jd��dS)NZmodule_name)�prefixZname_importZmultiple_importsrr)	�get�valueZunicoderrrr!r�	transform)rrrZ
import_modZmod_name�new_nameZ	bare_namerrrr$Os


zFixUserdict.transform)�__name__�
__module__�__qualname__Z
BM_compatibleZkeep_line_order�MAPPINGrZ	run_orderrrrrr$�
__classcell__rr)rrr
*sr
N)�__doc__Zlib2to3rZlib2to3.fixer_utilrrZlib2to3.fixes.fix_importsrrrr)r
rrrr�<module>s