관리-도구
편집 파일: _itertools.cpython-311.pyc
� ,�Re� � � � d dl mZ d� fd�ZdS )� )�consumec � � | S )N� )�xs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_itertools.py�<lambda>r s � �!� � c # � K � t � � }|j }| D ]3} ||� � }||v rt d|�d�� � � ||� � |V � �4dS )a Wrap an iterable to raise a ValueError if non-unique values are encountered. >>> list(ensure_unique('abc')) ['a', 'b', 'c'] >>> consume(ensure_unique('abca')) Traceback (most recent call last): ... ValueError: Duplicate element 'a' encountered. zDuplicate element z encountered.N)�set�add� ValueError)�iterable�key�seen�seen_add�element�ks r � ensure_uniquer sy � � � � �5�5�D��x�H�� � ���C��L�L����9�9��J�'�J�J�J�K�K�K�������� � � � �� r N)� setuptools.extern.more_itertoolsr r r r r �<module>r s<