B
`^X @ s d Z ddlZddlZddlmZ ddlmZmZmZm Z ddl
mZmZm
Z
mZmZ ddlmZmZmZ G dd deZG d d
d
eZG dd dejeZG d
d deejZdS )a-
babel.support
~~~~~~~~~~~~~
Several classes and functions that help with integrating and using Babel
in applications.
.. note: the code in this module is not used by Babel itself
:copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
N)Locale)format_dateformat_datetimeformat_timeformat_timedelta)
format_numberformat_decimalformat_currencyformat_percentformat_scientific)PY2 text_typetext_to_nativec @ sn e Zd ZdZdddZdddZddd Zdd
dZd ddZdd Z d!ddZ
dd Zd"ddZdd Z
dS )#FormataC Wrapper class providing the various date and number formatting functions
bound to a specific locale and time-zone.
>>> from babel.util import UTC
>>> from datetime import date
>>> fmt = Format('en_US', UTC)
>>> fmt.date(date(2007, 4, 1))
u'Apr 1, 2007'
>>> fmt.decimal(1.2345)
u'1.234'
Nc C s t || _|| _dS )zInitialize the formatter.
:param locale: the locale identifier or `Locale` instance
:param tzinfo: the time-zone info (a `tzinfo` instance or `None`)
N)r parselocaletzinfo)selfr r r >/opt/alt/python37/lib/python3.7/site-packages/babel/support.py__init__'