(percent, value, grouping=False, monetary=False, *additional)
return _format(percent, value, grouping, monetary, *additional)
Deprecated, use format_string instead.
Deprecated, use format_string instead.
Deprecated use format_string instead .
def format(percent, value, grouping=False, monetary=False, *additional):
    """Deprecated, use format_string instead."""
    import warnings
    warnings.warn(
        "This method will be removed in a future version of Python. "
        "Use 'locale.format_string()' instead.",
        DeprecationWarning, stacklevel=2
    )

    match = _percent_re.match(percent)
    if not match or len(match.group())!= len(percent):
        raise ValueError(("format() must be given exactly one %%char "
                         "format specifier, %s not valid") % repr(percent))
    return _format(percent, value, grouping, monetary, *additional)
def format ( percent , value , grouping = False , monetary = False , * additional ) : import warnings warnings . warn ( "This method will be removed in a future version of Python. " "Use 'locale.format_string()' instead." , DeprecationWarning , stacklevel = 2 ) match = _percent_re . match ( percent ) if not match or len ( match . group ( ) ) != len ( percent ) : raise ValueError ( ( "format() must be given exactly one %%char " "format specifier, %s not valid" ) % repr ( percent ) ) return _format ( percent , value , grouping , monetary , * additional )