File: //snap/core22/2133/usr/lib/python3/dist-packages/babel/__pycache__/numbers.cpython-310.pyc
o
l:^�� � @ s& d Z ddlZddlmZmZ ddlZddlmZm Z m
Z
ddlmZm
Z
ze W n ey3 eZY nw ed�ZG dd� de�ZdLd d
�ZdLdd�ZdLd
d�ZdLdd�Zdefdd�Zefdd�Zdd� Zdefdd�Z dMdd�Zefdd�Zefdd �Zefd!d"�Zefd#d$�Z efd%d&�Z!efd'd(�Z"d)d*� Z#d+d,� Z$dedfd-d.�Z%G d/d0� d0e&�Z'dedd1dfd2d3�Z(dedd1dfd4d5�Z)dedfd6d7�Z*dedfd8d9�Z+G d:d;� d;e,�Z-efd<d=�Z.edfd>d?�Z/d@Z0dAZ1dBe0 Z2dCe1 Z3dDZ4e�5dEe2e3e4f �Z6dFdG� Z7dHdI� Z8G dJdK� dKe9�Z:dS )Na�
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-2019 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�date�datetime)�default_locale�Locale�
get_global)�decimal�string_types�
LC_NUMERICc @ s e Zd ZdZdd� ZdS )�UnknownCurrencyErrorzRException thrown when a currency is requested for which no data is available.
c C s t �| d| � || _dS )zkCreate the exception.
:param identifier: the identifier string of the unsupported currency
zUnknown currency %r.N)� Exception�__init__�
identifier)�selfr
� r �//usr/lib/python3/dist-packages/babel/numbers.pyr + s
zUnknownCurrencyError.__init__N)�__name__�
__module__�__qualname__�__doc__r r r r r r
'