/usr/lib/python2.6/site-packages/babel
Edit: /usr/lib/python2.6/site-packages/babel/lists.pyc (1466B)
Ñò
6
Wc @ s5 d Z d d k l Z l Z e ƒ Z e d „ Z d S( 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ÿÿÿÿ( t Localet default_localec C sÒ t i | ƒ } | p d St | ƒ d j o | d St | ƒ d j o | i d i | Œ S| i d i | d | d ƒ } x. | d d !D] } | i d i | | ƒ } qŽ W| i d i | | 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
t i i i t 2t startiÿÿÿÿt middlet end( R t parset lent
list_patternst format( t lstt localet resultt elem( ( s* /tmp/pip-build-wCUybK/Babel/babel/lists.pyt format_list s ! N( t __doc__t
babel.coreR R t DEFAULT_LOCALER ( ( ( s* /tmp/pip-build-wCUybK/Babel/babel/lists.pyt
s