def indented(text, level, indent=2):
    """Take a multiline text and indent it as a block"""
    return "\n".join("%s%s" % (level * indent * " ", s) for s in text.splitlines())
dataset/ETHPy150Open tjguk/winsys/winsys/utils.py/indented/original