관리-도구
편집 파일: fix_UserDict.cpython-311.pyc
� �܋f � �^ � d Z ddlmZ ddlmZmZ ddlmZmZm Z ddiZ G d� de � � Zd S ) zCFix UserDict. Incomplete! TODO: base this on fix_urllib perhaps? � )� fixer_base)�Name� attr_chain)� alternates� build_pattern� FixImports�UserDict�collectionsc �N � � e Zd ZdZdZeZdZd� Z� fd�Z � fd�Z � fd�Zd� Z� xZ S )�FixUserdictT� c �P � d� t | j � � � � S )N�|)�joinr �mapping)�selfs �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libfuturize/fixes/fix_UserDict.pyr zFixUserdict.build_pattern5 s � ��x�x� �d�l�3�3�4�4�4� c � �� | � � � | _ t t | � � � � � d S �N)r �PATTERN�superr �compile_pattern)r � __class__s �r r zFixUserdict.compile_pattern8 s: �� � �)�)�+�+��� �j�$���/�/�1�1�1�1�1r c � ��� t t | � � j � �|� � }|r1d|vr+t �fd�t |d� � D � � � � rdS |S dS )N�bare_with_attrc 3 �. �K � | ]} �|� � V � �d S r � )�.0�obj�matchs �r � <genexpr>z$FixUserdict.match.<locals>.<genexpr>F s+ �� � � �I�I�s���c� � �I�I�I�I�I�Ir �parentF)r r r! �anyr )r �node�resultsr! r s @�r r! zFixUserdict.match? sv ��� ��j�$�'�'�-���%��+�+��� � �w�.�.��I�I�I�I�j��x�.H�.H�I�I�I�I�I� /��u��N��ur c �h �� t t | � � � ||� � i | _ d S r )r r � start_tree�replace)r �tree�filenamer s �r r( zFixUserdict.start_treeK s. �� � �j�$���*�*�4��:�:�:�����r c � � |� d� � }|r�|j }t | j | � � }|� t ||j �� � � � d|v r || j |<