3
X'ícX§ ã @ s< d Z ddlZddlZddlmZmZ ddlZddlm Z m
Z
mZ ye W n e
k
r` eZY nX e dZG dd deZdQdd ZdRd
dZdSdd
ZdTddZdefddZefddZdd ZdefddZdUddZefddZefddZefd d!Zefd"d#Zefd$d%Zefd&d'Z d(d) Z!d*d+ Z"deddfd,d-Z#d.edd/d0d1Z$dVd2d3Z%G d4d5 d5e&Z'dedd6ddfd7d8Z(dedd6ddfd9d:Z)deddfd;d<Z*dedfd=d>Z+G d?d@ d@e,Z-efdAdBZ.edfdCdDZ/dEZ0dFZ1dGe0 Z2dHe1 Z3dIZ4ej5dJe2e3e4f Z6dKdL Z7dMdN Z8G dOdP dPZ9dS )Wa
babel.numbers
~~~~~~~~~~~~~
Locale dependent formatting and parsing of numeric data.
The default locale for the functions in this module is determined by the
following environment variables, in that order:
* ``LC_NUMERIC``,
* ``LC_ALL``, and
* ``LANG``
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
é N)ÚdateÚdatetime)Údefault_localeÚLocaleÚ
get_globalÚ
LC_NUMERICc @ s e Zd ZdZdd ZdS )ÚUnknownCurrencyErrorzRException thrown when a currency is requested for which no data is available.
c C s t j| d| || _dS )zkCreate the exception.
:param identifier: the identifier string of the unsupported currency
zUnknown currency %r.N)Ú ExceptionÚ__init__Ú
identifier)Úselfr © r