[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.217.122.248: ~ $
�

3�Dg���p�dZddlmZddlmZddlmZddlmZm	Z	erddl
mZe	��Zdefdd�Z
dS)aY
    babel.lists
    ~~~~~~~~~~~

    Locale dependent formatting of lists.

    The default locale for the functions in this module is determined by the
    following environment variables, in that order:

     * ``LC_ALL``, and
     * ``LANG``

    :copyright: (c) 2015-2023 by the Babel Team.
    :license: BSD, see LICENSE for more details.
�)�annotations)�Sequence)�
TYPE_CHECKING)�Locale�default_locale)�Literal�standard�lst�
Sequence[str]�style�\Literal['standard', 'standard-short', 'or', 'or-short', 'unit', 'unit-short', 'unit-narrow']�locale�Locale | str | None�return�strc
��tj|��}|sdSt|��dkr|dS||jvr+t	d|�d|�dt|j���d����|j|}t|��dkr|d	j|�S|d
�|d|d��}|dd�D]}|d�||��}�|d
�||d��}|S)u�
    Format the items in `lst` as a list.

    >>> format_list(['apples', 'oranges', 'pears'], locale='en')
    u'apples, oranges, and pears'
    >>> format_list(['apples', 'oranges', 'pears'], locale='zh')
    u'apples、oranges和pears'
    >>> format_list(['omena', 'peruna', 'aplari'], style='or', locale='fi')
    u'omena, peruna tai aplari'

    These styles are defined, but not all are necessarily available in all locales.
    The following text is verbatim from the Unicode TR35-49 spec [1].

    * standard:
      A typical 'and' list for arbitrary placeholders.
      eg. "January, February, and March"
    * standard-short:
      A short version of a 'and' list, suitable for use with short or abbreviated placeholder values.
      eg. "Jan., Feb., and Mar."
    * or:
      A typical 'or' list for arbitrary placeholders.
      eg. "January, February, or March"
    * or-short:
      A short version of an 'or' list.
      eg. "Jan., Feb., or Mar."
    * unit:
      A list suitable for wide units.
      eg. "3 feet, 7 inches"
    * unit-short:
      A list suitable for short units
      eg. "3 ft, 7 in"
    * unit-narrow:
      A list suitable for narrow units, where space on the screen is very limited.
      eg. "3′ 7″"

    [1]: https://www.unicode.org/reports/tr35/tr35-49/tr35-general.html#ListPatterns

    :param lst: a sequence of items to format in to a list
    :param style: the style to format the list with. See above for description.
    :param locale: the locale
    ��rzLocale z( does not support list formatting style z (supported are �)��2�start����middle�end)r�parse�len�
list_patterns�
ValueError�sorted�format)r
rr�patterns�result�elems      �k/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/babel/lists.py�format_listr&s<��X�\�&�
!�
!�F����r�
�3�x�x�1�}�}��1�v�
��F�(�(�(��
>�f�
>�
>�e�
>�
>�$�V�%9�:�:�
>�
>�
>�
�
�	
��#�E�*�H�
�3�x�x�1�}�}�#�x��}�#�S�)�)�
�g�
�
%�
%�c�!�f�c�!�f�
5�
5�F��A�b�D�	�9�9���(�#�*�*�6�4�8�8���
�e�_�
#�
#�F�C��G�
4�
4�F��M�N)r
rrr
rrrr)�__doc__�
__future__r�collections.abcr�typingr�
babel.corerr�typing_extensionsr�DEFAULT_LOCALEr&�r'r%�<module>r0s�����#�"�"�"�"�"�$�$�$�$�$�$� � � � � � �-�-�-�-�-�-�-�-��*�)�)�)�)�)�)���!�!��wA�.<�A�A�A�A�A�A�Ar'

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 1.07 KB 0644
core.cpython-311.pyc File 50.85 KB 0644
dates.cpython-311.pyc File 83.69 KB 0644
languages.cpython-311.pyc File 4.23 KB 0644
lists.cpython-311.pyc File 3.84 KB 0644
localedata.cpython-311.pyc File 13.32 KB 0644
numbers.cpython-311.pyc File 53.6 KB 0644
plural.cpython-311.pyc File 34.77 KB 0644
support.cpython-311.pyc File 35.94 KB 0644
units.cpython-311.pyc File 11.77 KB 0644
util.cpython-311.pyc File 11.55 KB 0644