관리-도구
편집 파일: format_control.cpython-312.pyc
� G��e� � �D � d dl mZmZmZ d dlmZ d dlmZ G d� d� Zy)� )� FrozenSet�Optional�Set)�canonicalize_name)�CommandErrorc � � e Zd ZdZddgZ ddeee deee ddfd�Zde de fd�Zdefd �Ze d edee dee ddfd�� Zd edee fd�Zdd�Zy)� FormatControlzBHelper for managing formats from which a package can be installed.� no_binary�only_binaryN�returnc �P � |� t � }|� t � }|| _ || _ y �N)�setr r )�selfr r s ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/models/format_control.py�__init__zFormatControl.__init__ s- � � ����I����%�K�"���&��� �otherc � � �� t �� j � st S � j �j k7 ryt �� fd�� j D � � S )NFc 3 �P �K � | ] }t �|� t �|� k( �� � y �wr )�getattr)�.0�kr r s ��r � <genexpr>z'FormatControl.__eq__.<locals>.<genexpr>! s$ �� �� �Q�Q�7�4��#�w�u�a�'8�8�Q�s �#&)� isinstance� __class__�NotImplemented� __slots__�all)r r s ``r �__eq__zFormatControl.__eq__ s? �� ��%����0�!�!��>�>�U�_�_�,���Q�$�.�.�Q�Q�Qr c �x � dj | j j | j | j � S )Nz {}({}, {}))�formatr �__name__r r �r s r �__repr__zFormatControl.__repr__# s0 � ��"�"��N�N�#�#�T�^�^�T�5E�5E� � r �value�targetc � � | j d� rt d� �| j d� }d|v rR|j � |j � |j d� |d |j d� dz �= d|vry d|v r�R|D ]E }|dk( r|j � �t |� }|j |� |j |� �G y )N�-z7--no-binary / --only-binary option requires 1 argument.�,�:all:� z:none:)� startswithr �split�clear�add�indexr �discard)r&