Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.22.242.110
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
babel /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.cpython-310.pyc
895
B
-rw-r--r--
2024-02-16 18:50
_compat.cpython-310.pyc
2.09
KB
-rw-r--r--
2024-02-16 18:50
core.cpython-310.pyc
34.39
KB
-rw-r--r--
2024-02-16 18:50
dates.cpython-310.pyc
53.97
KB
-rw-r--r--
2024-02-16 18:50
languages.cpython-310.pyc
3.05
KB
-rw-r--r--
2024-02-16 18:50
lists.cpython-310.pyc
2.61
KB
-rw-r--r--
2024-02-16 18:50
localedata.cpython-310.pyc
7.37
KB
-rw-r--r--
2024-02-16 18:50
numbers.cpython-310.pyc
30.24
KB
-rw-r--r--
2024-02-16 18:50
plural.cpython-310.pyc
21.57
KB
-rw-r--r--
2024-02-16 18:50
support.cpython-310.pyc
21.79
KB
-rw-r--r--
2024-02-16 18:50
units.cpython-310.pyc
8.24
KB
-rw-r--r--
2024-02-16 18:50
util.cpython-310.pyc
6.92
KB
-rw-r--r--
2024-02-16 18:50
Save
Rename
o V��\� � @ s, d Z ddlmZmZ e� Zdefdd�ZdS )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-2019 by the Babel Team. :license: BSD, see LICENSE for more details. � )�Locale�default_locale�standardc C s� t �|�}| s dS t| �dkr| d S ||jvr&td||tt|j��f ��|j| }t| �dkr8|d j| � S |d �| d | d �}| dd� D ] }|d �||�}qJ|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 � � r zFLocale %s does not support list formatting style %r (supported are %s)� �2�start����middle�end)r �parse�len� list_patterns� ValueError�list�sorted�format)�lst�style�locale�patterns�result�elem� r �-/usr/lib/python3/dist-packages/babel/lists.py�format_list s&