%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/utils/locales.pyc

�
���^c@@s�dZddlmZmZddlZddlZddlmZ	e	d��Z
d�Zd�Zd�Z
d	�Zd
�ZdS(u
the locale utils used by salt
i(tabsolute_importtunicode_literalsN(tmemoizecC@s�tg}ytj�}Wntk
r2d}nX|rU||krU|j|�nx0ddgD]"}||krb|j|�qbqbW|S(u2
    return a list of string encodings to try
    uutf-8ulatin-1N(t__salt_system_encoding__tsystgetdefaultencodingt
ValueErrortNonetappend(t	encodingstsys_enctenc((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pyt
get_encodingss	

cC@s/tjjjdddd�tjjj|�S(NuSodiumu�Use of 'salt.utils.locales.sdecode' detected. This function has been replaced by 'salt.utils.data.decode' as of Salt 2019.2.0. This warning will be removed in Salt Sodium.t
stackleveli(tsalttutilstversionst
warn_untiltdatatdecode(tstring_((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pytsdecode$s
cC@s/tjjjdddd�tjjj|�S(NuSodiumu�Use of 'salt.utils.locales.sdecode_if_string' detected. This function has been replaced by 'salt.utils.data.decode' as of Salt 2019.2.0. This warning will be removed in Salt Sodium.R
i(RRRRRR(tvalue_((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pytsdecode_if_string/s
cC@s{d�}i}||d�\}|d<||d�\}|d<||d�\}|d<||d�\|d	<|d
<|S(u�
    Split a locale specifier.  The general format is

    language[_territory][.codeset][@modifier] [charmap]

    For example:

    ca_ES.UTF-8@valencia UTF-8
    cS@s8|j|d�}t|�dkr4|jd�n|S(u�
        Split a string `st` once by `char`; always return a two-element list
        even if the second element is empty.
        iu(tsplittlenR(tsttchartsplit_st((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pyRDsu ucharmapu@umodifieru.ucodesetu_ulanguageu	territory((tlocRtcompstwork_st((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pytsplit_locale:s
	
cC@s�|d}|jd�r.|d|d7}n|jd�rR|d|d7}n|jd�rv|d|d7}n|jd�r�|d	|d7}n|S(
uO
    Join a locale specifier split in the format returned by split_locale.
    ulanguageu	territoryu_ucodesetu.umodifieru@ucharmapu (tget(RR((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pytjoin_localeVs
cC@sTt|�}|dj�|d<|dj�jdd�|d<d|d<t|�S(uT
    Format a locale specifier according to the format returned by `locale -a`.
    u	territoryucodesetu-uucharmap(R tuppertlowertreplaceR"(RR((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pytnormalize_localefs
 
(t__doc__t
__future__RRRtsalt.utils.versionsRtsalt.utils.decoratorsRtreal_memoizeRRRR R"R&(((s6/usr/lib/python2.7/site-packages/salt/utils/locales.pyt<module>s				

Zerion Mini Shell 1.0