관리-도구
편집 파일: _plist.cpython-311.pyc
� �܋fe � �@ � d dl mZmZ d dlmZ d dlmZ G d� de� � Z G d� de� � Z G d� d e � � Z ej e � � ej e � � G d � de � � Z ej e� � ej e� � e� � Z dd�Zd� ZdS )� )�Sequence�Hashable)�Integral)�reducec �4 � e Zd ZdZdZd� Zd� Zd� Zd� Zd� Z dS ) � _PListBuilderzc Helper class to allow construction of a list without having to reverse it in the end. )�_head�_tailc �6 � t | _ t | _ d S �N)�_EMPTY_PLISTr r ��selfs �H/opt/cloudlinux/venv/lib64/python3.11/site-packages/pyrsistent/_plist.py�__init__z_PListBuilder.__init__ s � �!�� �!�� � � � c � � | j s ||� � | _ | j | _ n& ||� � | j _ | j j | _ | j S r )r r �rest)r �elem�constructors r �_appendz_PListBuilder._append sN � ��z� )�$��T�*�*�D�J���D�J�J�)�k�$�/�/�D�J�O����D�J��z�r c �0 � | � |d� � � S )Nc �, � t | t � � S r )�PListr )�es r �<lambda>z+_PListBuilder.append_elem.<locals>.<lambda> s � �E�!�\�,B�,B� r �r �r r s r �append_elemz_PListBuilder.append_elem s � ��|�|�D�"B�"B�C�C�Cr c �0 � | � |d� � � S )Nc � � | S r � )�ls r r z,_PListBuilder.append_plist.<locals>.<lambda> s � �!� r r )r �pls r �append_plistz_PListBuilder.append_plist s � ��|�|�B���,�,�,r c � � | j S r )r r s r �buildz_PListBuilder.build! s � ��z�r N) �__name__� __module__�__qualname__�__doc__� __slots__r r r r% r'