HEX
Server: LiteSpeed
System: Linux altar46.supremepanel46.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: jysa (4021)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/babel/lists.pyc
�
4\0Xc@s5dZddlmZmZe�Zed�ZdS(sT
    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 by the Babel Team.
    :license: BSD, see LICENSE for more details.
i����(tLocaletdefault_localecCs�tj|�}|sdSt|�dkr3|dSt|�dkrY|jdj|�S|jdj|d|d�}x.|dd!D]}|jdj||�}q�W|jd	j||d�}|S(
sE
    Format the items in `lst` as a list.

    >>> format_list(['apples', 'oranges', 'pears'], 'en')
    u'apples, oranges, and pears'
    >>> format_list(['apples', 'oranges', 'pears'], 'zh')
    u'apples\u3001oranges\u548cpears'

    :param lst: a sequence of items to format in to a list
    :param locale: the locale
    tiiit2tstarti����tmiddletend(Rtparsetlent
list_patternstformat(tlsttlocaletresulttelem((s//usr/lib/python2.7/site-packages/babel/lists.pytformat_lists!N(t__doc__t
babel.coreRRtDEFAULT_LOCALER(((s//usr/lib/python2.7/site-packages/babel/lists.pyt<module>s