File: //snap/certbot/4965/lib/python3.12/site-packages/setuptools/__pycache__/_itertools.cpython-312.pyc
�
9�h� � � � d dl mZ d� fd�Zy)� )�consumec � � | S )N� )�xs ��/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/setuptools/_itertools.py�<lambda>r s � �!� � c # � K � t � }|j }| D ]) } ||� }||v rt d|�d�� � ||� |�� �+ y�w)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 sX � �� � �5�D��x�x�H�� ����L����9��1�'��M�J�K�K�����
��s �AAN)�more_itertoolsr r r r r �<module>r s �� "� !,� r