
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
4\0X÷  ã               @   s*   d Z ddlmZmZ eƒ Zefdd„ZdS )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_localec             C   sž   t j|ƒ}| sdS t| ƒdkr&| d S t| ƒdkrB|jd j| Ž S |jd j| d | d ƒ}x&| dd	… D ]}|jd j||ƒ}qjW |jd j|| 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ÚstartZmiddleÚendéÿÿÿÿr
   )r   ÚparseÚlenZlist_patternsÚformat)ZlstZlocaleÚresultÚelem© r   ú/usr/lib/python3.6/lists.pyÚformat_list   s    
r   N)Ú__doc__Z
babel.corer   r   ZDEFAULT_LOCALEr   r   r   r   r   Ú<module>   s   