# Path: airy/core/conf.py
# class Settings(object):
#     def __init__(self, **entries):
#     def __getattribute__(self, name):
# def _ensure_defaults(dsettings, options, project_root, config_filename):
# def _preconfigure(project_root, config_filename='settings.py', argv=[]):
# 
# Path: airy/utils/safestring.py
# def mark_safe(s):
#     """
#     Explicitly mark a string as safe for (HTML) output purposes. The returned
#     object can be used everywhere a string or unicode object is appropriate.
# 
#     Can be called multiple times on a single string.
#     """
#     if isinstance(s, SafeData):
#         return s
#     if isinstance(s, str) or (isinstance(s, Promise) and s._delegate_str):
#         return SafeString(s)
#     if isinstance(s, (unicode, Promise)):
#         return SafeUnicode(s)
#     return SafeString(str(s))


from airy.core.conf import settings
from airy.utils.safestring import mark_safe


def format(number, decimal_sep, decimal_pos, grouping=0, thousand_sep=''):
    """
    Gets a number (as a number or string), and returns it as a string,
    using formats definied as arguments:

    * decimal_sep: Decimal separator symbol (for example ".")
    * decimal_pos: Number of decimal positions
    * grouping: Number of digits in every group limited by thousand separator
    * thousand_sep: Thousand separator symbol (for example ",")

    """
    use_grouping = settings.USE_L10N and \

# Path: airy/core/conf.py
# class Settings(object):
#     def __init__(self, **entries):
#     def __getattribute__(self, name):
# def _ensure_defaults(dsettings, options, project_root, config_filename):
# def _preconfigure(project_root, config_filename='settings.py', argv=[]):
# 
# Path: airy/utils/safestring.py
# def mark_safe(s):
#     """
#     Explicitly mark a string as safe for (HTML) output purposes. The returned
#     object can be used everywhere a string or unicode object is appropriate.
# 
#     Can be called multiple times on a single string.
#     """
#     if isinstance(s, SafeData):
#         return s
#     if isinstance(s, str) or (isinstance(s, Promise) and s._delegate_str):
#         return SafeString(s)
#     if isinstance(s, (unicode, Promise)):
#         return SafeUnicode(s)
#     return SafeString(str(s))


# Path: airy/utils/numberformat.py
from airy.core.conf import settings
from airy.utils.safestring import mark_safe



def format(number, decimal_sep, decimal_pos, grouping=0, thousand_sep=''):
    """
    Gets a number (as a number or string), and returns it as a string,
    using formats definied as arguments:

    * decimal_sep: Decimal separator symbol (for example ".")
    * decimal_pos: Number of decimal positions
    * grouping: Number of digits in every group limited by thousand separator
    * thousand_sep: Thousand separator symbol (for example ",")

    """
    use_grouping = settings.USE_L10N and \

        settings.USE_THOUSAND_SEPARATOR and grouping