Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
idna / lib / python2.7 / site-packages / babel / core.pyc
Size: Mime:
ó
ô’EYc@sþdZddlZddlmZddlmZmZddlmZdddd	d
gZ	e
aeiƒZd„Z
d„Zi'd
d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d1d26d3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dEdF6dGdH6dIdJ6dKdL6dMdN6dOdP6dQdR6dSdT6dUdV6dWdX6dYdZ6Zdefd[„ƒYZdefd\„ƒYZe
ed]„Zd^ed_„Zd^d`„Zd^da„ZdS(bsµ
    babel.core
    ~~~~~~~~~~

    Core locale representation and locale data access.

    :copyright: (c) 2013 by the Babel Team.
    :license: BSD, see LICENSE for more details.
iÿÿÿÿN(t
localedata(tpickletstring_types(t
PluralRuletUnknownLocaleErrortLocaletdefault_localetnegotiate_localetparse_localecCstdƒ‚dS(NséThe babel data files are not available. This usually happens because you are using a source checkout from Babel and you did not build the data files.  Just make sure to run "python setup.py import_cldr" before installing the library.(tRuntimeError(((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt_raise_no_data_errorscCsžtdkrŽtjjtjjtƒƒ}tjj|dƒ}tjj|ƒs[tƒnt	|dƒ}zt
j|ƒaWd|jƒXntj
|iƒS(s=Return the dictionary for the given key in the global data.

    The global data is stored in the ``babel/global.dat`` file and contains
    information independent of individual locales.

    >>> get_global('zone_aliases')['UTC']
    u'Etc/GMT'
    >>> get_global('zone_territories')['Europe/Berlin']
    u'DE'

    The keys available are:

    - ``currency_fractions``
    - ``language_aliases``
    - ``likely_subtags``
    - ``parent_exceptions``
    - ``script_aliases``
    - ``territory_aliases``
    - ``territory_currencies``
    - ``territory_languages``
    - ``territory_zones``
    - ``variant_aliases``
    - ``win_mapping``
    - ``zone_aliases``
    - ``zone_territories``

    .. note:: The internal structure of the data may change between versions.

    .. versionadded:: 0.9

    :param key: the data key
    s
global.dattrbN(t_global_datatNonetostpathtjointdirnamet__file__tisfileR
topenRtloadtclosetget(tkeyRtfilenametfileobj((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt
get_global#s"
tar_SYtartbg_BGtbgtbs_BAtbstca_EStcatcs_CZtcstda_DKtdatde_DEtdetel_GRtelten_UStentes_EStestet_EEtettfa_IRtfatfi_FItfitfr_FRtfrtgl_EStglthe_ILthethu_HUthutid_IDtidtis_IStistit_ITtittja_JPtjatkm_KHtkmtko_KRtkotlt_LTtlttlv_LVtlvtmk_MKtmktnl_NLtnltnn_NOtnntnb_NOtnotpl_PLtpltpt_PTtpttro_ROtrotru_RUtrutsk_SKtsktsl_SItsltsv_SEtsvtth_THtthttr_TRttrtuk_UAtukcBseZdZd„ZRS(s[Exception thrown when a locale is requested for which no locale data
    is available.
    cCs!tj|d|ƒ||_dS(sjCreate the exception.

        :param identifier: the identifier string of the unsupported locale
        sunknown locale %rN(t	Exceptiont__init__t
identifier(tselfRl((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRkcs(t__name__t
__module__t__doc__Rk(((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR^scBsMeZdZd;d;d;d„Zed;ed„ƒZeded„ƒZede	d„ƒZ
d„Zd„Zd„Z
d	„Zd
„Zed„ƒZd;d„Zeed
dƒZd;d„Zeed
dƒZd;d„Zeed
dƒZd;d„Zeed
dƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ!ed„ƒZ"ed„ƒZ#ed„ƒZ$ed „ƒZ%ed!„ƒZ&ed"„ƒZ'ed#„ƒZ(ed$„ƒZ)ed%„ƒZ*ed&„ƒZ+ed'„ƒZ,ed(„ƒZ-ed)„ƒZ.ed*„ƒZ/ed+„ƒZ0ed,„ƒZ1ed-„ƒZ2ed.„ƒZ3ed/„ƒZ4ed0„ƒZ5ed1„ƒZ6ed2„ƒZ7ed3„ƒZ8ed4„ƒZ9ed5„ƒZ:ed6„ƒZ;ed7„ƒZ<ed8„ƒZ=ed9„ƒZ>ed:„ƒZ?RS(<sYRepresentation of a specific locale.

    >>> locale = Locale('en', 'US')
    >>> repr(locale)
    "Locale('en', territory='US')"
    >>> locale.display_name
    u'English (United States)'

    A `Locale` object can also be instantiated from a raw locale string:

    >>> locale = Locale.parse('en-US', sep='-')
    >>> repr(locale)
    "Locale('en', territory='US')"

    `Locale` objects provide access to a collection of locale data, such as
    territory and language names, number and date format patterns, and more:

    >>> locale.number_symbols['decimal']
    u'.'

    If a locale is requested for which no locale data is available, an
    `UnknownLocaleError` is raised:

    >>> Locale.parse('en_XX')
    Traceback (most recent call last):
        ...
    UnknownLocaleError: unknown locale 'en_XX'

    For more information see :rfc:`3066`.
    cCs[||_||_||_||_d|_t|ƒ}tj|ƒsWt	|ƒ‚ndS(sInitialize the locale object from the given identifier components.

        >>> locale = Locale('en', 'US')
        >>> locale.language
        'en'
        >>> locale.territory
        'US'

        :param language: the language code
        :param territory: the territory (country or region) code
        :param script: the script code
        :param variant: the variant code
        :raise `UnknownLocaleError`: if no locale data is available for the
                                     requested locale
        N(
tlanguaget	territorytscripttvariantR
t
_Locale__datatstrRtexistsR(RmRqRrRsRtRl((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRkŽs					cCst|d|ƒ}|j|ƒS(sfReturn the system default locale for the specified category.

        >>> for name in ['LANGUAGE', 'LC_ALL', 'LC_CTYPE', 'LC_MESSAGES']:
        ...     os.environ[name] = ''
        >>> os.environ['LANG'] = 'fr_FR.UTF-8'
        >>> Locale.default('LC_MESSAGES')
        Locale('fr', territory='FR')

        The following fallbacks to the variable are always considered:

        - ``LANGUAGE``
        - ``LC_ALL``
        - ``LC_CTYPE``
        - ``LANG``

        :param category: one of the ``LC_XXX`` environment variable names
        :param aliases: a dictionary of aliases for locale identifiers
        taliases(Rtparse(tclstcategoryRxt
locale_string((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytdefault¬st_cCs8t||d|d|ƒ}|r4tj|d|ƒSdS(s\Find the best match between available and requested locale strings.

        >>> Locale.negotiate(['de_DE', 'en_US'], ['de_DE', 'de_AT'])
        Locale('de', territory='DE')
        >>> Locale.negotiate(['de_DE', 'en_US'], ['en', 'de'])
        Locale('de')
        >>> Locale.negotiate(['de_DE', 'de'], ['en_US'])

        You can specify the character used in the locale identifiers to separate
        the differnet components. This separator is applied to both lists. Also,
        case is ignored in the comparison:

        >>> Locale.negotiate(['de-DE', 'de'], ['en-us', 'de-de'], sep='-')
        Locale('de', territory='DE')

        :param preferred: the list of locale identifers preferred by the user
        :param available: the list of locale identifiers available
        :param aliases: a dictionary of aliases for locale identifiers
        tsepRxN(RRRy(Rzt	preferredt	availableRRxRl((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt	negotiateÅs	cs0|d
krd
St|tƒr#|St|tƒsHtd|fƒ‚nt|d|ƒ}t|ƒ}‡fd†‰‡fd†}ˆ|ƒ}|d
k	r |S|sµt|ƒ‚n|\}}	}
}tdƒj	||ƒ}tdƒj	|	|	fƒd}	tdƒj	|
|
ƒ}
td	ƒj	||ƒ}|	d
krCd
}	n|
dkrXd
}
n||	|
|f}t|ƒ}tdƒj	|ƒ}
|
d
k	r¼|t|
ƒƒ}|d
k	r¼|Sntdƒj	|ƒ}
|
d
k	r t|
ƒ\}}}}|||	||fƒ}|d
k	r |Snt|ƒ‚d
S(s6Create a `Locale` instance for the given locale identifier.

        >>> l = Locale.parse('de-DE', sep='-')
        >>> l.display_name
        u'Deutsch (Deutschland)'

        If the `identifier` parameter is not a string, but actually a `Locale`
        object, that object is returned:

        >>> Locale.parse(l)
        Locale('de', territory='DE')

        This also can perform resolving of likely subtags which it does
        by default.  This is for instance useful to figure out the most
        likely locale for a territory you can use ``'und'`` as the
        language tag:

        >>> Locale.parse('und_AT')
        Locale('de', territory='AT')

        :param identifier: the locale identifier string
        :param sep: optional component separator
        :param resolve_likely_subtags: if this is specified then a locale will
                                       have its likely subtag resolved if the
                                       locale otherwise does not exist.  For
                                       instance ``zh_TW`` by itself is not a
                                       locale that exists but Babel can
                                       automatically expand it to the full
                                       form of ``zh_hant_TW``.  Note that this
                                       expansion is only taking place if no
                                       locale exists otherwise.  For instance
                                       there is a locale ``en`` that can exist
                                       by itself.
        :raise `ValueError`: if the string does not appear to be a valid locale
                             identifier
        :raise `UnknownLocaleError`: if no locale data is available for the
                                     requested locale
        s"Unxpected value for identifier: %rRcs'yˆ|ŒSWntk
r"dSXdS(N(RR
(tparts(Rz(s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt	_try_loads
cs@ˆ|ƒ}|dk	r|Sˆ|d ƒ}|dk	r<|SdS(Ni(R
(Rƒtlocale(R„(s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt_try_load_reducingstlanguage_aliasestterritory_aliasesitscript_aliasestvariant_aliasestZZtZzzztlikely_subtagsN(
R
t
isinstanceRRt	TypeErrorRtget_locale_identifierRRR(RzRlRtresolve_likely_subtagsRƒtinput_idR†R…RqRrRsRttnew_idt
likely_subtagt	language2R~tscript2tvariant2((R„Rzs?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRyßsL(			cCsjx!dD]}t||ƒstSqW|j|jkoi|j|jkoi|j|jkoi|j|jkS(NRqRrRsRt(slanguages	territorysscriptsvariant(thasattrtFalseRqRrRsRt(RmtotherR((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt__eq__Os
cCs|j|ƒS(N(R›(RmRš((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt__ne__XscCs"t|j|j|j|jfƒS(N(thashRqRrRsRt(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt__hash__[scCsqdg}xCd	D];}t||ƒ}|dk	r|jd||fƒqqWd|jdj|ƒ}d|S(
NtRrRsRts%s=%rs%rs, s
Locale(%s)(s	territorysscriptsvariant(tgetattrR
tappendRqR(Rmt
parametersRtvaluetparameter_string((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt__repr__^s	
cCs"t|j|j|j|jfƒS(N(RRqRrRsRt(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt__str__gscCs:|jdkr3tjtjt|ƒƒƒ|_n|jS(N(RuR
RtLocaleDataDictRRv(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt_dataks$cCs|dkr|}ntj|ƒ}|jj|jƒ}|jsT|jsT|jrg}|jr‚|j	|j
j|jƒƒn|jrª|j	|jj|jƒƒn|jrÒ|j	|jj|jƒƒnt
d|ƒ}|r|ddj|ƒ7}qn|S(sRReturn the display name of the locale using the given locale.

        The display name will include the language, territory, script, and
        variant, if those are specified.

        >>> Locale('zh', 'CN', script='Hans').get_display_name('en')
        u'Chinese (Simplified, China)'

        :param locale: the locale to use
        s (%s)u, N(R
RRyt	languagesRRqRrRsRtR¡tscriptstterritoriestvariantstfilterR(RmR…tretvaltdetails((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytget_display_nameqs 				tdocs        The localized display name of the locale.

        >>> Locale('en').display_name
        u'English'
        >>> Locale('en', 'US').display_name
        u'English (United States)'
        >>> Locale('sv').display_name
        u'svenska'

        :type: `unicode`
        cCs7|dkr|}ntj|ƒ}|jj|jƒS(sæReturn the language of this locale in the given locale.

        >>> Locale('zh', 'CN', script='Hans').get_language_name('de')
        u'Chinesisch'

        .. versionadded:: 1.0

        :param locale: the locale to use
        N(R
RRyR©RRq(RmR…((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytget_language_namešs
	sx        The localized language name of the locale.

        >>> Locale('en', 'US').language_name
        u'English'
    cCs7|dkr|}ntj|ƒ}|jj|jƒS(s.Return the territory name in the given locale.N(R
RRyR«RRr(RmR…((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytget_territory_name°s	s‹        The localized territory name of the locale if available.

        >>> Locale('de', 'DE').territory_name
        u'Deutschland'
    cCs7|dkr|}ntj|ƒ}|jj|jƒS(s+Return the script name in the given locale.N(R
RRyRªRRs(RmR…((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytget_script_name¾s	s‘        The localized script name of the locale if available.

        >>> Locale('sr', 'ME', script='Latn').script_name
        u'latinica'
    cCs|jtdƒƒS(sÂThe english display name of the locale.

        >>> Locale('de').english_name
        u'German'
        >>> Locale('de', 'DE').english_name
        u'German (Germany)'

        :type: `unicode`R-(R°R(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytenglish_nameÌs
cCs|jdS(säMapping of language codes to translated language names.

        >>> Locale('de', 'DE').languages['ja']
        u'Japanisch'

        See `ISO 639 <http://www.loc.gov/standards/iso639-2/>`_ for
        more information.
        R©(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR©Ús
cCs|jdS(sæMapping of script codes to translated script names.

        >>> Locale('en', 'US').scripts['Hira']
        u'Hiragana'

        See `ISO 15924 <http://www.evertype.com/standards/iso15924/>`_
        for more information.
        Rª(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRªæs
cCs|jdS(sïMapping of script codes to translated script names.

        >>> Locale('es', 'CO').territories['DE']
        u'Alemania'

        See `ISO 3166 <http://www.iso.org/iso/en/prods-services/iso3166ma/>`_
        for more information.
        R«(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR«òs
cCs|jdS(s–Mapping of script codes to translated script names.

        >>> Locale('de', 'DE').variants['1901']
        u'Alte deutsche Rechtschreibung'
        R¬(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR¬þscCs|jdS(s¡Mapping of currency codes to translated currency names.  This
        only returns the generic form of the currency name, not the count
        specific one.  If an actual number is requested use the
        :func:`babel.numbers.get_currency_name` function.

        >>> Locale('en').currencies['COP']
        u'Colombian Peso'
        >>> Locale('de', 'DE').currencies['COP']
        u'Kolumbianischer Peso'
        tcurrency_names(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt
currencies	scCs|jdS(s¹Mapping of currency codes to symbols.

        >>> Locale('en', 'US').currency_symbols['USD']
        u'$'
        >>> Locale('es', 'CO').currency_symbols['USD']
        u'US$'
        tcurrency_symbols(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR¸s	cCs|jdS(sÛSymbols used in number formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('fr', 'FR').number_symbols['decimal']
        u','
        tnumber_symbols(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR¹"s
cCs|jdS(sûLocale patterns for decimal number formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').decimal_formats[None]
        <NumberPattern u'#,##0.###'>
        tdecimal_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRº.s
cCs|jdS(slLocale patterns for currency number formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').currency_formats['standard']
        <NumberPattern u'\xa4#,##0.00'>
        >>> Locale('en', 'US').currency_formats['accounting']
        <NumberPattern u'\xa4#,##0.00'>
        tcurrency_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR»:scCs|jdS(søLocale patterns for percent number formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').percent_formats[None]
        <NumberPattern u'#,##0%'>
        tpercent_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR¼Hs
cCs|jdS(sûLocale patterns for scientific number formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').scientific_formats[None]
        <NumberPattern u'#E0'>
        tscientific_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR½Ts
cCs0y|jdddSWntk
r+iSXdS(srLocale display names for day periods (AM/PM).

        >>> Locale('en', 'US').periods['am']
        u'AM'
        tday_periodssstand-alonetwideN(R¨tKeyError(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytperiodsbs
cCs|jdS(s¤Locale display names for various day periods (not necessarily only AM/PM).

        These are not meant to be used without the relevant `day_period_rules`.
        R¾(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR¾nscCs|jjdiƒS(sCDay period rules for the locale.  Used by `get_period_id`.
        tday_period_rules(R¨R(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÂvscCs|jdS(s{Locale display names for weekdays.

        >>> Locale('de', 'DE').days['format']['wide'][3]
        u'Donnerstag'
        tdays(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÃ|scCs|jdS(syLocale display names for months.

        >>> Locale('de', 'DE').months['format']['wide'][10]
        u'Oktober'
        tmonths(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRąscCs|jdS(sLocale display names for quarters.

        >>> Locale('de', 'DE').quarters['format']['wide'][1]
        u'1. Quartal'
        tquarters(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRŎscCs|jdS(sLocale display names for eras.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').eras['wide'][1]
        u'Anno Domini'
        >>> Locale('en', 'US').eras['abbreviated'][0]
        u'BC'
        teras(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRƗscCs|jdS(sfLocale display names for time zones.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').time_zones['Europe/London']['long']['daylight']
        u'British Summer Time'
        >>> Locale('en', 'US').time_zones['America/St_Johns']['city']
        u'St. John\u2019s'
        t
time_zones(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÇ¥scCs|jdS(sÀLocale display names for meta time zones.

        Meta time zones are basically groups of different Olson time zones that
        have the same GMT offset and daylight savings time.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').meta_zones['Europe_Central']['long']['daylight']
        u'Central European Summer Time'

        .. versionadded:: 0.9
        t
meta_zones(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRȳscCs|jdS(scPatterns related to the formatting of time zones.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').zone_formats['fallback']
        u'%(1)s (%(0)s)'
        >>> Locale('pt', 'BR').zone_formats['region']
        u'Hor\xe1rio %s'

        .. versionadded:: 0.9
        tzone_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÉÄscCs|jddS(s§The first day of a week, with 0 being Monday.

        >>> Locale('de', 'DE').first_week_day
        0
        >>> Locale('en', 'US').first_week_day
        6
        t	week_datat	first_day(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pytfirst_week_dayÔs	cCs|jddS(sqThe day the weekend starts, with 0 being Monday.

        >>> Locale('de', 'DE').weekend_start
        5
        RÊt
weekend_start(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÍßscCs|jddS(smThe day the weekend ends, with 0 being Monday.

        >>> Locale('de', 'DE').weekend_end
        6
        RÊtweekend_end(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÎèscCs|jddS(s¯The minimum number of days in a week so that the week is counted as
        the first week of a year or month.

        >>> Locale('de', 'DE').min_week_days
        4
        RÊtmin_days(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt
min_week_daysñscCs|jdS(sJLocale patterns for date formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').date_formats['short']
        <DateTimePattern u'M/d/yy'>
        >>> Locale('fr', 'FR').date_formats['long']
        <DateTimePattern u'd MMMM y'>
        tdate_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÑûscCs|jdS(sLLocale patterns for time formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en', 'US').time_formats['short']
        <DateTimePattern u'h:mm a'>
        >>> Locale('fr', 'FR').time_formats['long']
        <DateTimePattern u'HH:mm:ss z'>
        ttime_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÒ	scCs|jdS(s,Locale patterns for datetime formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en').datetime_formats['full']
        u"{1} 'at' {0}"
        >>> Locale('th').datetime_formats['medium']
        u'{1} {0}'
        tdatetime_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÓscCs|jdS(sALocale patterns for formatting parts of a datetime.

        >>> Locale('en').datetime_skeletons['MEd']
        <DateTimePattern u'E, M/d'>
        >>> Locale('fr').datetime_skeletons['MEd']
        <DateTimePattern u'E dd/MM'>
        >>> Locale('fr').datetime_skeletons['H']
        <DateTimePattern u"HH 'h'">
        tdatetime_skeletons(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÔ%scCs|jdS(sLocale patterns for interval formatting.

        .. note:: The format of the value returned may change between
                  Babel versions.

        How to format date intervals in Finnish when the day is the
        smallest changing component:

        >>> Locale('fi_FI').interval_formats['MEd']['d']
        [u'E d. \u2013 ', u'E d.M.']

        .. seealso::

           The primary API to use this data is :py:func:`babel.dates.format_interval`.


        :rtype: dict[str, dict[str, list[str]]]
        tinterval_formats(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÕ2scCs|jjdtƒS(sPlural rules for the locale.

        >>> Locale('en').plural_form(1)
        'one'
        >>> Locale('en').plural_form(0)
        'other'
        >>> Locale('fr').plural_form(0)
        'one'
        >>> Locale('ru').plural_form(100)
        'many'
        tplural_form(R¨Rt_default_plural_rule(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÖHs
cCs|jdS(sbPatterns for generating lists

        .. note:: The format of the value returned may change between
                  Babel versions.

        >>> Locale('en').list_patterns['start']
        u'{0}, {1}'
        >>> Locale('en').list_patterns['end']
        u'{0}, and {1}'
        >>> Locale('en_GB').list_patterns['end']
        u'{0} and {1}'
        t
list_patterns(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRØWscCs|jjdtƒS(s?Plural rules for the locale.

        >>> Locale('en').ordinal_form(1)
        'one'
        >>> Locale('en').ordinal_form(2)
        'two'
        >>> Locale('en').ordinal_form(3)
        'few'
        >>> Locale('fr').ordinal_form(2)
        'other'
        >>> Locale('ru').ordinal_form(100)
        'other'
        tordinal_form(R¨RR×(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÙgscCs|jdS(sÓLocalized names for various measurement systems.

        >>> Locale('fr', 'FR').measurement_systems['US']
        u'am\xe9ricain'
        >>> Locale('en', 'US').measurement_systems['US']
        u'US'

        tmeasurement_systems(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÚxs
cCs|jdS(s¼The text direction for the language.

        >>> Locale('de', 'DE').character_order
        'left-to-right'
        >>> Locale('ar', 'SA').character_order
        'right-to-left'
        tcharacter_order(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRۄs	cCs#djd„|jjdƒDƒƒS(s½The text direction for the language in CSS short-hand form.

        >>> Locale('de', 'DE').text_direction
        'ltr'
        >>> Locale('ar', 'SA').text_direction
        'rtl'
        RŸcss|]}|dVqdS(iN((t.0tword((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pys	<genexpr>˜st-(RRÛtsplit(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyttext_directions	cCs|jdS(sþDisplay names for units of measurement.

        .. seealso::

           You may want to use :py:func:`babel.units.get_unit_name` instead.

        .. note:: The format of the value returned may change between
                  Babel versions.

        tunit_display_names(R¨(Rm((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRášsN(@RnRoRpR
RktclassmethodtLOCALE_ALIASESR}R‚tTrueRyR›RœRžR¥R¦tpropertyR¨R°tdisplay_nameR²t
language_nameR³tterritory_nameR´tscript_nameRµR©RªR«R¬R·R¸R¹RºR»R¼R½RÁR¾RÂRÃRÄRÅRÆRÇRÈRÉRÌRÍRÎRÐRÑRÒRÓRÔRÕRÖRØRÙRÚRÛRàRá(((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRns€o																				

cCsâ|ddddf}xÆtd|ƒD]µ}tj|ƒ}|r%|dkrnd|krn|jdƒd}n|jdƒddkrd
}n|r¯||kr¯||}nytt|ƒƒSWqÚtk
rÖqÚXq%q%WdS(
sòReturns the system default locale for a given category, based on
    environment variables.

    >>> for name in ['LANGUAGE', 'LC_ALL', 'LC_CTYPE']:
    ...     os.environ[name] = ''
    >>> os.environ['LANG'] = 'fr_FR.UTF-8'
    >>> default_locale('LC_MESSAGES')
    'fr_FR'

    The "C" or "POSIX" pseudo-locales are treated as aliases for the
    "en_US_POSIX" locale:

    >>> os.environ['LC_MESSAGES'] = 'POSIX'
    >>> default_locale('LC_MESSAGES')
    'en_US_POSIX'

    The following fallbacks to the variable are always considered:

    - ``LANGUAGE``
    - ``LC_ALL``
    - ``LC_CTYPE``
    - ``LANG``

    :param category: one of the ``LC_XXX`` environment variable names
    :param aliases: a dictionary of aliases for locale identifiers
    tLANGUAGEtLC_ALLtLC_CTYPEtLANGt:it.tCtPOSIXten_US_POSIXN(RðRñ(R­R
RtgetenvRßRRt
ValueError(R{RxtvarnamestnameR…((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR©s	

R~c	CsÞg|D]}|r|jƒ^q}x²|D]ª}|jƒ}||krN|S|r—|j|ƒ}|r—|jd|ƒ}|jƒ|kr”|Sq—n|j|ƒ}t|ƒdkr,|djƒ|kr,|dSq,WdS(slFind the best match between available and requested locale strings.

    >>> negotiate_locale(['de_DE', 'en_US'], ['de_DE', 'de_AT'])
    'de_DE'
    >>> negotiate_locale(['de_DE', 'en_US'], ['en', 'de'])
    'de'

    Case is ignored by the algorithm, the result uses the case of the preferred
    locale identifier:

    >>> negotiate_locale(['de_DE', 'en_US'], ['de_de', 'de_at'])
    'de_DE'

    >>> negotiate_locale(['de_DE', 'en_US'], ['de_de', 'de_at'])
    'de_DE'

    By default, some web browsers unfortunately do not include the territory
    in the locale identifier for many locales, and some don't even allow the
    user to easily add the territory. So while you may prefer using qualified
    locale identifiers in your web-application, they would not normally match
    the language-only locale sent by such browsers. To workaround that, this
    function uses a default mapping of commonly used langauge-only locale
    identifiers to identifiers including the territory:

    >>> negotiate_locale(['ja', 'en_US'], ['ja_JP', 'en_US'])
    'ja_JP'

    Some browsers even use an incorrect or outdated language code, such as "no"
    for Norwegian, where the correct locale identifier would actually be "nb_NO"
    (Bokmål) or "nn_NO" (Nynorsk). The aliases are intended to take care of
    such cases, too:

    >>> negotiate_locale(['no', 'sv'], ['nb_NO', 'sv_SE'])
    'nb_NO'

    You can override this default mapping by passing a different `aliases`
    dictionary to this function, or you can bypass the behavior althogher by
    setting the `aliases` parameter to `None`.

    :param preferred: the list of locale strings preferred by the user
    :param available: the list of locale strings available
    :param sep: character that separates the different parts of the locale
                strings
    :param aliases: a dictionary of aliases for locale identifiers
    R~iiN(tlowerRtreplaceRßtlenR
(	R€RRRxtaR…tlltaliasRƒ((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRÖs.%

(cCsöd|kr%|jddƒd}nd|krJ|jddƒd}n|j|ƒ}|jdƒjƒ}|jƒstd|ƒ‚nd}}}|rât|dƒdkrâ|djƒrâ|jdƒjƒ}qân|rat|dƒdkr&|djƒr&|jdƒjƒ}qat|dƒdkra|dj	ƒra|jdƒ}qan|rÍt|dƒdkr‘|ddj	ƒs»t|dƒd	krÍ|ddjƒrÍ|jƒ}qÍn|rætd
|ƒ‚n||||fS(süParse a locale identifier into a tuple of the form ``(language,
    territory, script, variant)``.

    >>> parse_locale('zh_CN')
    ('zh', 'CN', None, None)
    >>> parse_locale('zh_Hans_CN')
    ('zh', 'CN', 'Hans', None)

    The default component separator is "_", but a different separator can be
    specified using the `sep` parameter:

    >>> parse_locale('zh-CN', sep='-')
    ('zh', 'CN', None, None)

    If the identifier cannot be parsed into a locale, a `ValueError` exception
    is raised:

    >>> parse_locale('not_a_LOCALE_String')
    Traceback (most recent call last):
      ...
    ValueError: 'not_a_LOCALE_String' is not a valid locale identifier

    Encoding information and locale modifiers are removed from the identifier:

    >>> parse_locale('it_IT@euro')
    ('it', 'IT', None, None)
    >>> parse_locale('en_US.UTF-8')
    ('en', 'US', None, None)
    >>> parse_locale('de_DE.iso885915@euro')
    ('de', 'DE', None, None)

    See :rfc:`4646` for more information.

    :param identifier: the locale identifier string
    :param sep: character that separates the different components of the locale
                identifier
    :raise `ValueError`: if the string does not appear to be a valid locale
                         identifier
    Rïiit@sexpected only letters, got %riiiis#%r is not a valid locale identifierN(
RßtpopR÷tisalphaRôR
Rùttitletuppertisdigit(RlRRƒtlangRsRrRt((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyRs0(&&&**cCsVt|d ƒ}|ddt|ƒ\}}}}|jtd||||fƒƒS(s¾The reverse of :func:`parse_locale`.  It creates a locale identifier out
    of a ``(language, territory, script, variant)`` tuple.  Items can be set to
    ``None`` and trailing ``None``\s can also be left out of the tuple.

    >>> get_locale_identifier(('de', 'DE', None, '1999'))
    'de_DE_1999'

    .. versionadded:: 1.0

    :param tup: the tuple as returned by :func:`parse_locale`.
    :param sep: the separator for the identifier.
    iN(N(ttupleR
RùRR­(ttupRRRrRsRt((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyR`s
$(RpRtbabelRt
babel._compatRRtbabel.pluralRt__all__R
RR×R
RRãRjRtobjectRRRRR(((s?/home/tvault/.virtenv/lib/python2.7/site-packages/babel/core.pyt<module>
s8				/#######ÿÿÿ>-?K