Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : _itertools.cpython-312.pyc
�

��h����dd�Zy)Nc��t|�}t||�}	t|�}dj||�}|xst|��#t$rY|SwxYw)a(If *iterable* has only one item, return it.
    If it has zero items, return *default*.
    If it has more than one item, raise the exception given by *too_long*,
    which is ``ValueError`` by default.
    >>> only([], default='missing')
    'missing'
    >>> only([1])
    1
    >>> only([1, 2])  # doctest: +IGNORE_EXCEPTION_DETAIL
    Traceback (most recent call last):
    ...
    ValueError: Expected exactly one item in iterable, but got 1, 2,
     and perhaps more.'
    >>> only([1, 2], too_long=TypeError)  # doctest: +IGNORE_EXCEPTION_DETAIL
    Traceback (most recent call last):
    ...
    TypeError
    Note that :func:`only` attempts to advance *iterable* twice to ensure there
    is only one item.  See :func:`spy` or :func:`peekable` to check
    iterable contents less destructively.
    zLExpected exactly one item in iterable, but got {!r}, {!r}, and perhaps more.)�iter�next�format�
ValueError�
StopIteration)�iterable�default�too_long�it�first_value�second_value�msgs       �E/opt/alt/python312/lib64/python3.12/importlib/resources/_itertools.py�onlyrsj��,
�h��B��r�7�#�K�	*��B�x��

 � &��{�L� A�	��)�*�S�/�)���
����
�s�A�	A�A)NN)r��r�<module>rs
��$r
© 2025 XylotrechusZ