from io import StringIO


def get_content(sandbox):
    """
    Get content from config, replace some errors

    :param sandox: it is config from loading file config (*.cfg)
    :type sandox: ConfigParser

    :rparam content: correct content of config file
    :rtype conent: str
    """
    buff = StringIO()
    sandbox.write(buff)
    content = buff.getvalue().replace('+ =', '+=').replace(' \n', '\n')
    buff.close()
    return content