⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
babel
/
__pycache__
/
View File Name :
lists.cpython-312.pyc
]xe r d Z ddlmZ ddlmZ ddlmZ ddlmZm Z erddl mZ e Zdef d dZ y )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)Localedefault_locale)Literalstandardc t j | }| syt | dk( r| d S ||j vr(t d| d|dt |j d |j | }t | dk( r |d j | S |d j | d | d }| dd D ] }|d j || } |d j || 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 an '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 zLocale z( does not support list formatting style z (supported are ) 2startmiddleend)r parselen list_patterns ValueErrorsortedformat)lststylelocalepatternsresultelems -/usr/lib/python3/dist-packages/babel/lists.pyformat_listr! s X \\& !F 3x1}1v F(((fXEeY O$V%9%9:;1 > ##E*H 3x1}#x}##S)) g % %c!fc!f 5FAb (#**648 e_ # #FCG 4FM N)r z Sequence[str]r z\Literal['standard', 'standard-short', 'or', 'or-short', 'unit', 'unit-short', 'unit-narrow']r zLocale | str | Nonereturnstr)__doc__ __future__r collections.abcr typingr babel.corer r typing_extensionsr DEFAULT_LOCALEr! r" r
r- sQ # $ -)! wA.<AsA+AADAr"