dbfdg 3 4\0X÷ć@s*dZddlmZmZeƒZefdd„ZdS)aT 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. é)ŚLocaleŚdefault_localecCsžtj|ƒ}|sdSt|ƒdkr&|dSt|ƒdkrB|jdj|ŽS|jdj|d|dƒ}x&|dd …D]}|jdj||ƒ}qjW|jdj||d ƒ}|S) u? 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态oranges和pears' :param lst: a sequence of items to format in to a list :param locale: the locale ŚéréŚ2ŚstartZmiddleŚendé’’’’r )rŚparseŚlenZ list_patternsŚformat)ZlstZlocaleŚresultŚelem©rś/usr/lib/python3.6/lists.pyŚ format_lists   rN)Ś__doc__Z babel.corerrZDEFAULT_LOCALErrrrrŚs