import io


def config_to_string(config):
    """
    Convert ConfigParser object to string in INI format.

    Args:
        config (obj): ConfigParser object

    Returns:
        str: Config in one string

    """
    strio = io.StringIO()
    config.write(strio, space_around_delimiters=False)
    return strio.getvalue()